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

Firefox HMR error in console #9776

Closed
wesbos opened this issue Dec 18, 2019 · 5 comments · Fixed by #9798
Closed

Firefox HMR error in console #9776

wesbos opened this issue Dec 18, 2019 · 5 comments · Fixed by #9798

Comments

@wesbos
Copy link
Contributor

wesbos commented Dec 18, 2019

Bug report

Describe the bug

Loading any page in firefox shows this error in the console:

The connection to http://localhost:3000/_next/webpack-hmr was interrupted while the page was loading.

To Reproduce

  1. git clone git@github.com:zeit/next.js.git
  2. cd next.js/examples/blog-starter
  3. npm install
  4. npm run dev
  5. Visit localhost:3000 and open console.
  6. See The connection to http://localhost:3000/_next/webpack-hmr?page=/ was interrupted while the page was loading.

Expected behavior

This error should not happen

Screenshots

Screen Shot 2019-12-18 at 10 43 10 AM

System information

  • OS: Mac OS Catalina
  • Firefox Developer
  • Version of Next.js: 9.1.6

Additional context

Related: #4456

@deklanw
Copy link

deklanw commented Dec 19, 2019

Just started trying Next.js for the first time and I'm getting this too, I think. Pretty disappointing.

On first load I'm getting:

Failed to register/update a ServiceWorker for scope ‘http://localhost:3000/’: Load failed with status 404 for script ‘http://localhost:3000/service-worker.js’.

After reload I'm getting this:

Firefox can’t establish a connection to the server at http://localhost:3000/_next/webpack-hmr?page=/.

and timeouts.

@timneutkens
Copy link
Member

Failed to register/update a ServiceWorker for scope ‘http://localhost:3000/’: Load failed with status 404 for script ‘http://localhost:3000/service-worker.js’.

This is because you had a serviceworker installed on localhost:3000 from a project that isn't using Next.js.

@deklanw
Copy link

deklanw commented Dec 19, 2019

@timneutkens Thank you! Removing the old service worker has appeared to fix both issues for me.

@ijjk
Copy link
Member

ijjk commented Dec 20, 2019

Hi, this should be resolved by #9798 which is available in v9.1.7-canary.1 of Next.js

@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
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants