react-starter-kit icon indicating copy to clipboard operation
react-starter-kit copied to clipboard

Every time refresh page HMR will disconnect once

Open zation opened this issue 9 years ago • 3 comments

I cloned the newest repo and run npm start. Every time I enter the web page, HMR will disconnect once: connect => disconnect => connect. After disconnect, it won't disconnect agin and works fine. Is this because I enter page before client compiler finish?

screen shot 2017-06-25 at 4 32 27 pm

zation avatar Jun 25 '17 08:06 zation

Nope, it because webpack hmr is not compatible with node.js 8 yet

frenzzy avatar Jun 25 '17 11:06 frenzzy

Looks like this was fixed in node 8.1.1, refs:

  • https://github.com/glenjamin/webpack-hot-middleware/issues/210
  • https://github.com/nodejs/node/pull/13549

frenzzy avatar Jun 25 '17 11:06 frenzzy

Thanks for you response. The error is gone when I use node 8.1.2

zation avatar Jun 25 '17 16:06 zation