Giter Site home page Giter Site logo

Comments (17)

kentcdodds avatar kentcdodds commented on August 26, 2024 82

I'm pretty sure the problem is that you have webpack installed in /Users/home/node_modules. I'm guessing that's by error, and you should probably remove the /Users/home/node_modules directory.

I'm going to close this issue, but feel free to comment if you have further questions.

from advanced-react-patterns-v2.

Youness0x avatar Youness0x commented on August 26, 2024 7

You can try this also it's worked for me
go to your package.json
replace "react-scripts": "whatever ver u got" to "react-scripts": "1.1.4",
then run npm install, after that npm start

from advanced-react-patterns-v2.

yairEO avatar yairEO commented on August 26, 2024 5

I have the same issue:

▶ npm ls webpack 
[email protected] /Users/yeven/projects/foo
├─┬ @storybook/[email protected]
│ ├─┬ @storybook/[email protected]
│ │ └── [email protected]  deduped
│ └── [email protected] 
└─┬ [email protected]
  └── [email protected] 

Unsure how to solve it

from advanced-react-patterns-v2.

marvidac avatar marvidac commented on August 26, 2024 1

For me, delete the node_modules didn't work. So I had to put "SKIP_PREFLIGHT_CHECK=true" in the '.env'.

from advanced-react-patterns-v2.

rmille4612 avatar rmille4612 commented on August 26, 2024 1

I first globally uninstalled webpack (npm uninstall -g webpack) and then globally reinstalled webpack 4.29.6 (npm install -g [email protected]). Next I deleted any node module which started with the word webpack in the directory C:\Users\MyUserName\node_modules folder but left all other packages untouched. This corrected to issue. I still have webpack installed in my AppData folder and in the programs folder. Using Windows 10, node 10.16.0, npm 6.9.0. Just a slight tweek on the answer given above. I spent three days on this issue so I hope it helps!

from advanced-react-patterns-v2.

kentcdodds avatar kentcdodds commented on August 26, 2024

I should probably add that this is actually a react-scripts bug. You might consider reporting it there: https://github.com/facebook/create-react-app/issues/new

Good luck!

from advanced-react-patterns-v2.

rollinglex avatar rollinglex commented on August 26, 2024

Thanks! I deleted the node_modules dir as you said and it worked perfectly.

from advanced-react-patterns-v2.

tomluo5 avatar tomluo5 commented on August 26, 2024

Thanks, I deleted the node_modoles after success!

from advanced-react-patterns-v2.

chadacious avatar chadacious commented on August 26, 2024

I had the same issue as yairEO where I was using several linked react-app libraries. I was able to resolve it by deleting all my project node_modules (and the symlink directories in my %AppData%\npm\node_modules).

from advanced-react-patterns-v2.

unnatikala05 avatar unnatikala05 commented on August 26, 2024

i have executed all the steps but none worked for me

from advanced-react-patterns-v2.

rmille4612 avatar rmille4612 commented on August 26, 2024

unnatikala05.... react is very moody. Doesn't seem to matter whether you're install on Mac, Windows or whatever. I've found you usually have some configuration tweaking to do after you first install it. Also, Facebook is constantly providing updates for newer versions of react. When you run npm create-react-app or npm init react-app you are installing dependencies from online repositories. If an update was placed there which incompatible with your installed libraries you'll need update your version npm. If your using windows that will likely mean literally removing and reinstalling the new version of NodJS from their website. Debugging can be frustrating at best. If you can provide more information about what errors you're receiving, and what code your running, I can try to help. Is it the same code in this repository? Or from another?

from advanced-react-patterns-v2.

sounakbh avatar sounakbh commented on August 26, 2024

Thank you! Worked for me too.

from advanced-react-patterns-v2.

katarisrividya avatar katarisrividya commented on August 26, 2024

You can try this also it's worked for me
delete node-modules
delete package-lock.json
go to your package.json
replace "react-scripts": "whatever ver u got" to "react-scripts": "1.1.4",
then run npm install, after that npm start

Thank you!I have been working on this for 2 days finally I got it

from advanced-react-patterns-v2.

dzenanvelic avatar dzenanvelic commented on August 26, 2024

Hello!!!
Last one is worked for me too:

delete node-modules
delete package-lock.json
go to your package.json
replace "react-scripts": "whatever u got" to "react-scripts": "1.1.4",
then run npm install, after that npm start

Thanks for a tip.

from advanced-react-patterns-v2.

ericerodgers avatar ericerodgers commented on August 26, 2024

Worked for me too! Was preventing from starting Wes Bos's React For Beginner's course for over a day now... Thanks! ModybinYunus!

delete node-modules
delete package-lock.json
go to your package.json
replace "react-scripts": "whatever u got" to "react-scripts": "1.1.4",
then run npm install, after that npm start

from advanced-react-patterns-v2.

Prabhakar-Nagaraj avatar Prabhakar-Nagaraj commented on August 26, 2024

You can try this also it's worked for me
delete node-modules
delete package-lock.json
go to your package.json
replace "react-scripts": "whatever ver u got" to "react-scripts": "1.1.4",
then run npm install, after that npm start

Thank you!I have been working on this for 2 days finally I got it

thanks it worked

from advanced-react-patterns-v2.

saurabhyadavz avatar saurabhyadavz commented on August 26, 2024

You can try this also it's worked for me
delete node-modules
delete package-lock.json
go to your package.json
replace "react-scripts": "whatever ver u got" to "react-scripts": "1.1.4",
then run npm install, after that npm start

Thank you!I have been working on this for 2 days finally I got it

thanks it worked

Thanks, I was stuck for the last 3 hours. :)

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.