Giter VIP home page Giter VIP logo

Comments (8)

suekto-andreas avatar suekto-andreas commented on May 10, 2024 3

Hi all - I've found a solution without deleting stuff.

In package.json update the react-scripts version.

"react-scripts": "2.1.8",

Does anyone can help to explain / refer me to resources on why this update solve the problem ?
I am just curious about the mechanics behind it.

from advanced-react-patterns-v2.

cvqprs avatar cvqprs commented on May 10, 2024 1

Looks like an issue with babel and history package: remix-run/history#677

The fast fix will be: vim node_modules/history/esm/history.js

remove the first line: import _extends from '@babel/runtime/helpers/esm/extends'

then run again: npm run setup --silent

from advanced-react-patterns-v2.

stefansandulescu avatar stefansandulescu commented on May 10, 2024

I have the same problem
node v8.14.0
npm v6.4.1

from advanced-react-patterns-v2.

valokin avatar valokin commented on May 10, 2024

Same problem here only in other js file in node modules,
node v8.12.0
npm v6.8.0

from advanced-react-patterns-v2.

kentcdodds avatar kentcdodds commented on May 10, 2024

Anyone want to figure out what's going on all of a sudden?

from advanced-react-patterns-v2.

valokin avatar valokin commented on May 10, 2024

Similar issue here gatsbyjs/gatsby#7668
But none of the suggested "fixes" seem to work

from advanced-react-patterns-v2.

valokin avatar valokin commented on May 10, 2024

I solved the issue for me by just deleting the js file in the node modules that was causing the trouble.
More specifically I had this exact same error in "/advanced-react-patterns-v2/node_modules/history/esm/history.js" ( I deleted that very file) and everything seems to be working fine now.
Good luck with finding the root of the problem. :) (I'll keep trying myself)

from advanced-react-patterns-v2.

kentcdodds avatar kentcdodds commented on May 10, 2024

It could be any number of things. The reason it broke probably has to do with a recent release of the history package. Glad that it's working now though.

from advanced-react-patterns-v2.

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.