Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
gnorbsl opened this issue Jun 21, 2021 · 8 comments

Comments

@gnorbsl
Copy link

gnorbsl commented Jun 21, 2021

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
Copy link

I have the same issue!

@gnorbsl
Copy link
Author

gnorbsl commented Jul 3, 2021

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

googleapis/nodejs-storage#1492

@paulofaria
Copy link

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
Copy link

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
Copy link

I encounter the same error in rollup

@PavlosIsaris
Copy link

Is there any update on this issue?

@villarzz
Copy link

someone fixed it?

@hflcc
Copy link

hflcc commented Jun 2, 2023

someone fixed it?

Try closing sourceMap.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants