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 not working #7310

Closed
david718 opened this issue May 11, 2019 · 4 comments
Closed

HMR not working #7310

david718 opened this issue May 11, 2019 · 4 comments

Comments

@david718
Copy link

Bug report

HMR doesn't work.

Describe the bug

I followed your Learn course in nextjs.org. HMR doesn't work at all.

package.json
{
"name": "hello-next",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo "Error: no test specified" && exit 1",
"dev": "next"
},
"dependencies": {
"next": "^8.1.0",
"react": "^16.8.6",
"react-dom": "^16.8.6"
}
}

To Reproduce

just followed Learn course. All I did was just install react, react-dom, next packages, then made ./pages/index.js

System information

  • OS: [WSL(bash)]
  • Browser (if applies) [chrome]
  • Version of Next.js: [e.g. 8.1.0]

Additional context

@timneutkens
Copy link
Member

Please provide more context, what was your pwd, we have tests covering all things HMR and they all pass before every single release.

@david718
Copy link
Author

OS: [window]

and I use WSL also, I input CLI(ex) npm run dev("next") in bash in vscode

you need more information?

if you do, plz let me know those informations

thanks

@Timer
Copy link
Member

Timer commented Jun 14, 2019

Hi! Try setting the following environment variable:

CHOKIDAR_USEPOLLING=true

If this doesn't work, please let us know -- but we'll likely need a motivated Windows contributor to take a look at this.

@Timer Timer closed this as completed Jun 14, 2019
@BiscuiTech
Copy link

Hello! I just had this issue and I can confirm that CHOKIDAR_USEPOLLING=true fixes it.

@vercel vercel locked as resolved and limited conversation to collaborators Aug 24, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants