node-libs-browser icon indicating copy to clipboard operation
node-libs-browser copied to clipboard

TypeError: The "original" argument must be of type Function

Open jbnv opened this issue 4 years ago • 5 comments

What does this error mean, and how do I resolve it?

TypeError: The "original" argument must be of type Function
    at promisify (util.js?eed9:602)
    at Object.eval (index.js?b048:9)
    at eval (index.js:277)
    at Object../node_modules/readdirp/index.js (printable.js:5067)
    at __webpack_require__ (runtime.js:854)
    at fn (runtime.js:151)
    at Object.eval (index.js?b44e:7)
    at eval (index.js:942)
    at Object../node_modules/chokidar/index.js (printable.js:1206)
    at __webpack_require__ (runtime.js:854)

jbnv avatar Jun 27 '20 23:06 jbnv

I'm having the exact same problem, has anyone find a way to fix it ?

aka-somix avatar Feb 07 '21 18:02 aka-somix

I also encountered this problem

LeileiChui avatar May 16 '21 17:05 LeileiChui

I also encountered this problem, I Write electron program. because of this error I have to write

const fs            = window.require("fs")

instead of

import fs from "fs"

Traineratwot avatar Oct 02 '21 08:10 Traineratwot

I also encountered this problem, Pending resolution......

ldhnet avatar Dec 21 '21 02:12 ldhnet

Did anyone find a solution?

anserwaseem avatar Nov 29 '23 12:11 anserwaseem