-
-
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
Slower compile time in CRA 4.0. #9966
Comments
Confirming the same issue. I upgraded yesterday and the compilation takes significantly longer. |
Same here, for my relatively big project it went from a average of about 1.3 seconds to 24.8 seconds. |
Same problem over here. It takes around 20-40 seconds longer now. |
Same. I didn't measure but every change before was almost instant and now takes more than 10 seconds if not close to 30s. |
I have the same problem here, even for a small project. |
It was resolved here: #9886 (comment) |
Yes, it is solved in this commit ceeb654 and will be ship with the next version. |
Here's a workaround that you can apply for the time being: #9930 (comment) |
Same here |
This issue has been fixed in 4.0.1. The performance is much, much better now! Thank you! ❤🎉 |
I upgraded to v4.0.1 and yarn start takes 2 minutes with typescript, I disabled eslint but nothing changed, please fix it as soon as possible. |
@iansu Can you please help, how to set up these things, for fast recompile because as mentioned in the 4.0.1 changes logs this was fixed, #CRA Team |
Same here.. painful, can't get what is happening since I upgrated to v4.0.1 |
This issue cause when I upgraded @types/react and @types/react-dom and removed "React" import from all components. Compile speed is almost good by import React. |
Try compile with Rust |
I was wondering if I should write a bug report or not, as this could be by design or side effect with Fast Refresh. But I'll leave this as a question for now.
After I upgraded to CRA version 4.0, I noticed that the compile time has increased quite significantly for me, or at least enough for me to clearly notice it. Before Fast Refresh, my app would compile quicker and refresh almost simultaneously when I saved a code change.
What I've already tried to decrease the compile time after upgrading to 4.0:
What could cause it:
At the moment I'd prefer disabling Fast Refresh in favour of faster compile time, if this is by design. Again, I'm not sure if this is by design or a side effect because of Fast Refresh, but if you need more information from me, or if you want me to try something out, then please comment!
Thanks!
The text was updated successfully, but these errors were encountered: