Giter Site home page Giter Site logo

Comments (8)

atshweza avatar atshweza commented on August 10, 2024

I am also facing the same issue @mebest100 any workarounds?
index.tsx:366 Uncaught TypeError: Object prototype may only be an Object or null: undefined
at Function.setPrototypeOf ()
at polyfills.js:139
at patch (polyfills.js:141)
at patch (graceful-fs.js:104)
at Object. (graceful-fs.js:96)
at Object../node_modules/node-localstorage/node_modules/graceful-fs/graceful-fs.js (graceful-fs.js:429)

from node-graceful-fs.

dargmuesli avatar dargmuesli commented on August 10, 2024

See #216.

from node-graceful-fs.

mebest100 avatar mebest100 commented on August 10, 2024

from node-graceful-fs.

Cyrelc avatar Cyrelc commented on August 10, 2024

Having the same issue with Laravel-mix v 6 which has this as a dependency. I read 216 but am uncertain how to identify a package which "is attempting to run in the browser but should only run on node". Any help would be greatly appreciated

Here is my dependency tree:
image

from node-graceful-fs.

Cyrelc avatar Cyrelc commented on August 10, 2024

Another message for the next person who finds this - I don't know why the issue pointed to graceful-fs but somebody - whether VSCode or mix or a misttype on my part that autocompleted - added an import to one of my files that was causing the issue

import { find } from 'laravel-mix/src/File'

from node-graceful-fs.

wangjia184 avatar wangjia184 commented on August 10, 2024

I encountered the exactly same problem, the whole project can be found here

If I use the following version, everything is fine.
"svelte-language-server": "^0.13.9"

If I upgrade it, gracefulFs fails with the exactly same error
"svelte-language-server": "^0.14.0",

from node-graceful-fs.

yoshixi avatar yoshixi commented on August 10, 2024

I am facing same issue in my nuxt project. The nuxt mode is spa.

from node-graceful-fs.

yoshixi avatar yoshixi commented on August 10, 2024

version v4.2.5 or higher versions may cause this error.

from node-graceful-fs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.