-
-
Notifications
You must be signed in to change notification settings - Fork 26.9k
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
react-scripts 4.0.1 is very slow #10145
Comments
Unfortunately without any sort of reproduction steps we can't help diagnose the slow compilation you're experiencing. You may want to take a look at #9886 to see if you're experiencing the same issues, and post your findings in there. |
You just have to create a blank project using I personally have around 7 seconds of compiling time on a blank project. Version of CRA
|
This is indeed a problem @ianschmitz, and I've confirmed what @imsandez reported above. Also, I've opened an issue with the Adding
At the end of |
@eek Thank you ! As a beginner, I'd specify the package.json file of the react-scripts dependancy in the node modules' folder (I thought about the package.json file at the root of the project but of course it didn't work).
Went from more than 2mins to start the project to 6s...thank you so much ! |
|
my react-script is too slow help me |
If you use WSL, you should create a folder in WSL system (e.i. |
thank you for the answer, but I noticed that the problem came from my operating system, by the way I was using windows 11, now I am going back to windows 10 and there is no more this problem thank you |
I've already changed my
to skip linting entirely, so then I assume the
change wouldn't affect startup time in my case? |
I think my laptop was slow, I bought it 7 years ago. The new one works perfectly fine and react scripts don't have this problem anymore. |
ok |
Yes |
I reinstall node js and it's good |
Same for me! Thaks fo the tip! |
I know this has been there for 2 years, but I followed @eek 's answer and added : in webpack.config.js of react-scripts package, I also added And ran Npm install, I don't know if that changed anything, but I went from 20+ min to run my app with npm start to ~2-3 min to run it. Not yet optimal, but that's way better. |
Describe the bug
react-scripts 4.0.1 is very slow on start and reload, by and without FAST_RELOAD, yarn start takes more than 2 minute now after update.
Did you try recovering your dependencies?
yes
Which terms did you search for in User Guide?
(Write your answer here if relevant.)
Environment
Ubuntu v20.10
Node v12.18.2 LTS
yarn v1.22.5
Steps to reproduce
The text was updated successfully, but these errors were encountered: