-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
404 Not Found for <host>/__webpack_hmr #981
Labels
Comments
You can fix this issue by removing 'webpack-hot-middleware/client' from your webpack config. |
Thank you @Panoplos and have a great day! :) |
@Panoplos I tried removing it and hot-reloading doesn't work for me. |
thanks @Panoplos. there are two ways for webpack-dev-server hot update:
const compiler = webpack(webpackConfig);
webpackConfig.entry.app = ['webpack-hot-middleware/client', webpackConfig.entry.app];
const devMiddleware = require('webpack-dev-middleware')(compiler, {});
const app = express();
app.use(devMiddleware);
//... |
@wuliupo Thanks for the information |
I did the same, but not working |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Do you want to request a feature or report a bug?
Report a bug.
What is the current behavior?
When running
webpack-dev-server
using the configuration detailed in the Gist below, the browser console emitshttp://localhost:8080/__webpack_hmr 404 (Not Found)
errors, and HMR does not work correctly.If the current behavior is a bug, please provide the steps to reproduce.
https://gist.github.com/jonlambert/2e38092c7527ec97329911882de29d91
What is the expected behavior?
For HMR to work correctly, with the client connecting to the websocket endpoint whilst using
webpack-dev-server
.Please mention your webpack and Operating System version.
The text was updated successfully, but these errors were encountered: