-
-
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
HMR/WDS client port ignored #704
Comments
Instead of |
With
This time |
Ah I think I understand the issue. Since webpack v2, inline mode is enabled by default if you use the CLI. This means that it automatically included the The cleanest way to fix it is to remove
|
This solved my issue! Thanks a lot. Really appreciate your quick replies |
Answer from @SpaceK33z solved my issue as well! it helps me save a lot of time. Thank you! |
Had the same issue. I had created the react app using create-react-app. Fixed the issue by running "npm run eject", and in webpack.config.dev.js, uncomment the following code |
I'm upgrading one of my projects from webpack v1.x to v2.x (most recent beta).
My setup can be illustrated as follows:
I have webpack-dev-server running in my VM on port 8080 and nginx acting as a reverse proxy. As I want to test my app on my host OS, I have set up the VMware NAT-Utility Service to forward requests on port 9081 (host) to port 81 (VM).
With webpack v.1x I got HMR working by adding the entry point
webpack-dev-server/client?http://0.0.0.0:9081
to my webpack-config. But this seems to break with Webpack v2.x. The browser's output suggests thatclient?http://0.0.0.0:9081
just gets ignored as request are issued to port 8080.I'm not sure if this is a bug or if I'm missing something...
Here is my webpack-config (
webpack-dev-server --config webpack.config.debugHot.js
). Here the relevant part of my ngnix config for completeness.The text was updated successfully, but these errors were encountered: