react-starter-kit
react-starter-kit copied to clipboard
Every time refresh page HMR will disconnect once
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?
Nope, it because webpack hmr is not compatible with node.js 8 yet
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
Thanks for you response. The error is gone when I use node 8.1.2