isaacs / node-graceful-fs

fs with incremental backoff on EMFILE
ISC License
1.27k stars 148 forks source link

Object prototype may only be an Object or null: undefined at Function.setPrototypeOf #216

Open gnorbsl opened 3 years ago

gnorbsl commented 3 years ago

I updated my dependencies, one of them is google-cloud/storage which seems to use this module.

TypeError: Object prototype may only be an Object or null: undefined
        at Function.setPrototypeOf (<anonymous>)

      at node_modules/graceful-fs/polyfills.js:139:39
      at patch (node_modules/graceful-fs/polyfills.js:141:5)
      at patch (node_modules/graceful-fs/graceful-fs.js:104:3)
      at Object.<anonymous> (node_modules/graceful-fs/graceful-fs.js:96:18)
      at Object.<anonymous> (node_modules/configstore/index.js:4:12)

Node 12

I can't really tell what is happening where though.

paulofaria commented 3 years ago

I have the same issue!

gnorbsl commented 3 years ago

@paulofaria Are you using google firebase storage too by chance? if so can you post here too:

https://github.com/googleapis/nodejs-storage/issues/1492

paulofaria commented 3 years ago

No, I believe my issue was very much a newbie error. I was trying to run a library that has graceful-fs as a dependency in the browser. I believe this library I mentioned is only supposed to run on node.js. My bad.

swamifalgun commented 2 years ago

I still am unable to solve this issue. Using the @national-digital/gridsome-plugin-keep-processed-images in my gridsome app triggers this error for me. @paulofaria could you point to a possible solution? thanks!

wangjia184 commented 2 years ago

I encounter the same error in rollup

PavlosIsaris commented 2 years ago

Is there any update on this issue?

villarzz commented 2 years ago

someone fixed it?

hflcc commented 1 year ago

someone fixed it?

Try closing sourceMap.