by diegorbaquero · 10y ago · 0 comments
The before code should not have Promise: "const fs = Promise.promisifyAll(require('fs'))"
import fs from 'fs'; Promise.promisifyAll(fs);