Closed badtant closed 5 years ago
I'm starting my dev server like this
var WebpackDevServer = require('webpack-dev-server');
var webpack = require('webpack');
var config = require('./webpack.config.dev.js');
var port = 9090;
var compiler = webpack(config);
var server = new WebpackDevServer(compiler, {
disableHostCheck: true,
headers: { 'Access-Control-Allow-Origin': '*' },
hot: true,
quiet: true,
publicPath: config.output.publicPath
});
server.listen(port, function serverListen() {
console.log('==> Webpack dev server running on port %s', port);
});
So I realized i should put HotModuleReplacementPlugin back. But still no updates. My console:
React-Hot-Loader: react-🔥-dom patch is not detected. React 16.6+ features may not work.
[WDS] Hot Module Replacement enabled.
[WDS] App updated. Recompiling...
[WDS] App hot update...
Progress:
And now it's working :)
Basically - when moving from v3 to v4 you shall change how you use RHL, not anything webpack related.
Happy you solved your quiz.
Hi,
I'm moving from v3 to v4 but cant get any updates to work.
My console says this but nothing seems to update.
Any suggestions?