-
-
Notifications
You must be signed in to change notification settings - Fork 26.8k
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
Dev server startup increased from 20 seconds to 2 minutes after upgrade to 4.0.0 #9930
Comments
Just found that there is closed issue with this problem #9886 Which seems to be related to eslint... |
My production build is 3x slow on 4.0.0... And dev server startup is too slow... I saw that the map is generated on dev mode, is this the best? I guess that .map files are only usable on production build that is minified |
Our builds have slowed down considerably, too. In my opinion, eslint should NOT be a part of the dev build at all or at least should be configurable. These days, most devs run an eslint plugin in their IDE for a more integrated dev experience anyway. Another odd default is treating all eslint warnings as errors in a CI/CD environment without any way to opt out. |
Disable eslint on dev server is the best way. We have eslint plugin on our IDE and also we have husky that checks the code before commit |
For anyone who finds this issue, here's how you can temporarily work around it using patch-package:
|
FWIW that patch increases my local |
Try compile with Rust |
This issue seems to be fixed by #9977 in release 4.0.2 |
I had this issue where the bare bones app created by create-react-app was taking 2 minutes to finish when running start. I tracked the issue down to the openBrowser function. You can eliminate this function from startup either by ejecting and then editing the start script or by modifying the start text in package.json to "BROWSER=none react-scripts start". Then you will need to open the browser manually, but many people prefer that start does not open the browser window when it runs anyway which is why I think BROWSER=none exists as a parameter. |
I love this comment, You saved me 1 year of life. With |
Describe the bug
Dev server startup time increased drastically after upgrade to
4.0.0
from3.4.3
. From 20 seconds to more than 2 minutes afte upgrade.Did you try recovering your dependencies?
Removed all node_modules before upgrading.
Which terms did you search for in User Guide?
Did not find anything related to this issue - slow startup time of devserver.
Environment
Steps to reproduce
TBD - it might be somehow specific to our project. Which is medium size TypeScript project.
More info
I know that this report might be hard to reproduce and I will probably need to provide more information. But there also might be more people having same issue when comparing build/startup times and we might be able to figure out why is this happening - because this seems def as a bug, as build is incredibly slow now and this is blocker for upgrading to new version.
It might be related to project setup, but I dont have idea where to start debugging issue - maybe someone from maintainers will know what might be cause. And where to start look.
The text was updated successfully, but these errors were encountered: