Skip to content
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

[HMR] Hot module replacement is not working #12030

Closed
alexandrzavalii opened this issue Apr 19, 2020 · 4 comments
Closed

[HMR] Hot module replacement is not working #12030

alexandrzavalii opened this issue Apr 19, 2020 · 4 comments
Labels
please add a complete reproduction The issue lacks information for further investigation

Comments

@alexandrzavalii
Copy link

alexandrzavalii commented Apr 19, 2020

Bug report

On the most basic example on nextjs, HMR does not work.
It is stuck on [HMR] bundle rebuilding
After some time I get this error

react_devtools_backend.js:6 Error while applying updates, reloading page Error: Manifest request to /_next/static/webpack/230ce46768afbdef672e.hot-update.json timed out.
    at XMLHttpRequest.request.onreadystatechange (bootstrap:91)

Screen Shot 2020-04-19 at 9 04 53 PM

HMR works on older version: NextJS v7.0.0

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. npx create-next-app
  2. cd your-app && yarn install
  3. yarn dev
  4. Try several times to make a change on index.js file and see the HMR stops working

System information

  • OS: MacOS
  • Chrome
  • Version of Next.js: [9.3.5]
  • Version of Node.js: [13]
@timneutkens timneutkens added the please add a complete reproduction The issue lacks information for further investigation label Apr 20, 2020
@timneutkens
Copy link
Member

Tried out the steps provided but can't reproduce the issue. We also have extensive integration tests for HMR.

@alexandrzavalii
Copy link
Author

@timneutkens Thanks for taking a look!
Could it be system related? Any idea what could be blocking hot-update.json requests?
Surprisingly it works with NextJS v7.0.0

@alexandrzavalii
Copy link
Author

This helped: #9776 (comment)
I had service worker installed on the same port :/
Very annoying that console didn't have any errors related to service-worker in the console, spent a day looking for a fix.

Anyways Nextjs is awesome, thanks for building it :)

@balazsorban44
Copy link
Member

This issue has been automatically locked due to no recent activity. If you are running into a similar issue, please create a new issue with the steps to reproduce. Thank you.

@vercel vercel locked as resolved and limited conversation to collaborators Jan 30, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
please add a complete reproduction The issue lacks information for further investigation
Projects
None yet
Development

No branches or pull requests

3 participants