-
-
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
Updating app.js causes webpack dev server to report error and then reload the page #1880
Comments
this is only if in chrome I have pause on exceptions turned on. otherwise it reloads the page. |
This is probably by design in Webpack, but maybe we could ask them to not use exceptions there. |
Sounds good to me. I'm not sure though if that would sometimes hide actual errors. |
Let’s keep it open. It is annoying and we should follow up with Webpack on this. |
Tagging myself @sokra and @SpaceK33z for followup |
Maybe just forking a Promise by attaching an empty |
Workaround is to open the developer tools in chrome, and the exception is no longer thrown - it doesn't have to stay open - still annoying though |
Never pause here doesn't work on last stable chrome on my fedora machine :( I've looked at different CRA versions, 0.9.5 works fine, 1.0.0 fails. Not sure if this caused by direct dependencies or deep ones. But this bug is PITA for sure. |
When you say "fails" what do you mean? The fact that this error gets displayed on reload? |
You can fix this by investigating why Webpack does this and maybe sending a PR that would work around it. :-) |
Nope, chrome debugger stops execution on this line even when Never pause here toggled on that line. -- |
This is the underlying Chrome issue: https://bugs.chromium.org/p/chromium/issues/detail?id=465666 |
Filed webpack/webpack#5175. |
Is anyone interested in trying the fix in webpack/webpack#5175 (comment)? |
Apparently this fix was included in webpack 3.4.0 released 2 weeks ago. When will create-react-app be updated to this (or later) webpack? |
Released |
@Timer It looks like |
Maybe there's a legitimate error there? Either way, I think we can close this. You can bring up Redux issues in its repo. :-) |
Finally looked this up after being annoyed by it for a little while - can verify that the update to v1.0.11 fixed the issue here @Timer 👍 Though I'm not using Redux, so I can't verify the issue @rayjsiu is experiencing. |
If you are reporting a bug, please fill in below. Otherwise feel free to remove this template entirely.
Can you reproduce the problem with latest npm?
yes
Many errors, especially related to "missing modules", are due to npm bugs.
If you're using Windows, follow these instructions to update npm.
If you're using OS X or Linux, run this to update npm:
Then try to reproduce the issue again.
Can you still reproduce it?
yes
Description
from a clone of master branch, running
npm start
launches webpack dev server as expected. making a simple text change to app.js in the template folder causes an error to occur in webpack dev server.stack:
Expected behavior
no error should occur in this case.
Actual behavior
see above.
Environment
Run these commands in the project folder and fill in their results:
npm ls react-scripts
(if you haven’t ejected): 0.9.4node -v
: 6.9.2npm -v
: 3.10.9Then, specify:
Reproducible Demo
Please take the time to create a new app that reproduces the issue.
Alternatively, you could copy your app that experiences the problem and start removing things until you’re left with the minimal reproducible demo.
(Accidentally, you might get to the root of your problem during that process.)
Push to GitHub and paste the link here.
By doing this, you're helping the Create React App contributors a big time!
Demonstrable issues gets fixed faster.
this is in the current master branch.
The text was updated successfully, but these errors were encountered: