chrome
v59.0.3071.104
node
v8.0.0
webpack
v3.0.0
webpack-dev-middleware
v1.10.2
webpack-hot-middleware
v2.18.0


Getting same error in one of three/four reloads. In scenarios when no error appeared - everything works OK, but when it comes up - you need to wait until 2nd connection will be established.
My configs: https://github.com/meyve/create-universal-react-redux-saga-rr4-wp3-express-app
UPDATE:
I figured out why that was happening. I was using Chrome extension called Wappalyzer to analyze any website's technology it was based on. When I opened "Network" tab of DevTools I saw that webpack-hot-middleware would lost connection if Wappalyzer's data was not cached and it started to inject its own script interrupting us. Check out your chrome extensions and Network tab if there is any interceptions.
Also you can check out my configs I posted above. Cheers :)
@meyve Thanks锛孖 have solved, I also used the Wappalyzer
Most helpful comment
Getting same error in one of three/four reloads. In scenarios when no error appeared - everything works OK, but when it comes up - you need to wait until 2nd connection will be established.
My configs: https://github.com/meyve/create-universal-react-redux-saga-rr4-wp3-express-app
UPDATE:
I figured out why that was happening. I was using Chrome extension called Wappalyzer to analyze any website's technology it was based on. When I opened "Network" tab of DevTools I saw that webpack-hot-middleware would lost connection if Wappalyzer's data was not cached and it started to inject its own script interrupting us. Check out your chrome extensions and Network tab if there is any interceptions.
Also you can check out my configs I posted above. Cheers :)