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.jsand copy the following code:export default () => <div>Welcome to next.js!</div> npm run devand 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
- Fix default server host value causing issues on Windows (#27306) This fixes a case where the HMR connection for fast refresh would fail to connect on Windows due to a change being made to the default... — committed to vercel/next.js by ijjk 5 years ago
- Fix default server host value causing issues on Windows (#27306) This fixes a case where the HMR connection for fast refresh would fail to connect on Windows due to a change being made to the default... — committed to blitz-js/next.js by ijjk 5 years ago
Same, only with firefox.
@timneutkens can this issue be reopened? Or should we create a new one, separate for Firefox issues?
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