-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Adding eslint-loader stops hot-reloading #5363
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
Comments
Jesus I was so wrong. Actually, For some reason, eslint warnings are webpack warnings (see webpack-contrib/eslint-loader#193). Although eslint-loader has the Just removed eslint-loader until this is resolved. I'm not sure if this wrong behaviour has to do with next.js or webpack or eslint or eslint-loader community. |
For the record, this also happens when any other webpack warning occurs (e.g. from mini-css-extract-plugin). |
Any update or workaround on this issue? |
For now, i'm running ESLint before application start only. Also, i'm using some linter plugins to my code editor. Haven't checked if there is any updates to fix this. |
Solved in #6099 |
Fixes #5363 I noticed this happening when making some changes on the nextjs.org/learn app. Basically we didn't apply updates when a warning was emitted from webpack. This would cause issues for users using eslint-loader or similar too.
Uh oh!
There was an error while loading. Please reload this page.
Bug report
Creating a custom
_error.js
in pages directory makes HMR stop working.This behavior occurs even when using Next's official example, unless your
_error.js
file contains a single div, with no other imports.To Reproduce
_error.js
page, with the example provided in this repoindex.js
contentExpected behavior
The window in the browser should update automatically.
System information
Additional context
When file saved:
The app logs "success server compiled" in the terminal
The app logs "[HMR] bundle rebuilding" in the browser's console
But there is no changes.
The problem still occurs in 7.0.2-canary.5 version.
The text was updated successfully, but these errors were encountered: