-
Notifications
You must be signed in to change notification settings - Fork 799
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ReactHot triggers error when update any component #77
Comments
Thanks for the test case. I'll take a look later in the evening. |
This is one of those annoying cases where CLI version of For now, creating var webpack = require('webpack');
var WebpackDevServer = require('webpack-dev-server');
var config = require('./webpack.config');
new WebpackDevServer(webpack(config), {
publicPath: config.output.publicPath,
hot: true
}).listen(8080, 'localhost', function (err, result) {
if (err) {
console.log(err);
}
console.log('Listening at localhost:8080');
}); |
Filed as webpack/webpack-dev-server#106. Hopefully we can get it fixed once and for all, now that you provided the repro! |
Nice! I didn't know the problem was in webpack-dev-server's CLI, thank you for the reply and the opened issue there... Should we close this issue or let it open until webpack/webpack-dev-server#106 gets solved? |
Let's leave it open so it's visible. |
As a commenter in webpack-dev-server/issues/87 says, you're probably tripping over this because you have both |
@herebebeasties confirmed! Now I just check if |
Can I ask you to add this to Troubleshooting doc page? |
Sure you can! Later today, ok? |
Thanks! |
Hot reloading now preserve the state of React components. HMR plugin removed. Explained here gaearon/react-hot-loader#77
Found this issue because I, too, had |
I removed |
I've made a minimal sample code to illustrate the problem, whenever I change any code, I got the following error on browser's console:
Where bundled.js:6 is:
The text was updated successfully, but these errors were encountered: