next.js: Error on reloading page in the initial next.js installation

Describe the bug I get the following error shown in the console when I reload a page in firefox: The connection to http://localhost:3000/_next/webpack-hmr was interrupted while the page was loading.

This seems to happen even with a new next.js installation.

To Reproduce

  • Create a new folder mkdir nextjs-test
  • navigate to the folder and install dependencies npm install --save next react react-dom
  • add the dev script to package.json "dev": "next"
  • create ./pages/index.js and copy the following code: export default () => <div>Welcome to next.js!</div>
  • npm run dev and open localhost:3000 in firefox.
  • Reload the browser and open the console. The error should show up in your console.

Expected behavior I expect no error since I only followed the basic setup.

System information

  • OS: macOS
  • Browser: firefox 60.0.1 (no error when using chrome)
  • Version of Next.js: 6.0.3

About this issue

  • Original URL
  • State: closed
  • Created 8 years ago
  • Reactions: 11
  • Comments: 15 (6 by maintainers)

Commits related to this issue

Most upvoted comments

Same, only with firefox.

@timneutkens can this issue be reopened? Or should we create a new one, separate for Firefox issues?

Hello,

October 2019 here, I still have this error with a lightly different message : The connection to http://localhost:3000/_next/webpack-hmr?page=/ was interrupted while the page was loading.

Anyway to clean a bit the console in dev mod?

Thanks

Bump, same problem here. Next 9.1.1

I’m going to close this as it’s probably outdated and fixed already if there was an issue before.

having similar error GET http://localhost:3000/_next/webpack-hmr?page=/ (canceled) | eventsource

hot reload do not works (no updating triangle)

issue happens from version 10.0.5 and greater, versions from 10.0.0 to 10.0.4 are working ok, I was able to downgrade and work normally

it is strange but looks like it is only browsers (tested Chrome and Firefox on two diffrent machines) cannot perfom request, commands like wget or curl do receive data

Hello,

October 2019 here, I still have this error with a lightly different message : The connection to http://localhost:3000/_next/webpack-hmr?page=/ was interrupted while the page was loading.

Anyway to clean a bit the console in dev mod?

Thanks

I’ve created a new issue for this:

https://github.com/zeit/next.js/issues/9776

Sounds like you have a babelrc in a directory above the next.js app, next itself doesn’t use babel-preset-react-app, that’s a create-React-app preset