reload is broken
- Operating System: Ubuntu 18.04
- Node Version: 8.11.3
- NPM Version: 6.2.0
- webpack Version: 4.16.1
- webpack-hot-client Version: 4.1.1
Expected Behavior
Page doesn't reload.
Actual Behavior
Page should reload.
Code
https://github.com/webpack-contrib/webpack-serve/blob/master/docs/addons/static-content-options.config.js
How Do We Reproduce?
- Run example above.
- Change something in
app.js(page has not been reloaded, becauseinitial: true-> https://github.com/webpack-contrib/webpack-hot-client/blob/master/lib/client/index.js#L30 and https://github.com/webpack-contrib/webpack-hot-client/blob/master/lib/client/index.js#L78) - Change something again (page has been reloaded, all fine)
- Change again something in
app.js(page has not been reloaded, because after reload pageinitialwas setted intruehttps://github.com/webpack-contrib/webpack-hot-client/blob/master/lib/client/index.js#L30)
Related problem with css (style-loader and css-loader) - first change not applied because initial: true.
@shellscape found problem, i have external WebSocket (use ws@5 version) client and communicate with webpack-hot-client web socket server, but in webpack-hot-client we use ws@4, it is break web sockets :confused: :disappointed:
What is blocker for update their? We use in own app ws@5 and can't downgrade, also we need communicate with webpack-hot-client web socket server
The server is supposed to be standards compliant, so I don't know why it would break. You'll have to investigate.
@shellscape problem with compatibility ws@5 and ws@4.
If you use WebSocket.Server from ws@4 and WebSocket (client) from ws@5. WebSocket.Server is freeze after connection. I do not understand deeply ws code. Can we upgrade ws to 5 version?
This makes impossible to use in one application ws (latest stable version - 5.2.2) and webpack-serve
Maybe, but WebSocket.Server in ws@5 needs to be backwards compatible. I'd check with the ws project about both back compat, and the problem you're facing now.
Yeah I tried running this example from webpack-serve and it doesn't work anymore, not even after using [email protected]
Have the same issue. The hot reload is not working in two different projects - i'm pretty sure the only thing that has been changed was me upgrading to ubuntu 18.04.
Webpack hot realod works, hot reload inside my react app stopped working. Works after rebooting my laptop and stop working again after couple of minutes.