-
-
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
sockjs-node gives 404 after upgrade to v3. (wp v3 -> wpv4). wds not serving up html files #1802
Comments
I meant to say that this might be the same bug as #1796, but that description was talking about a different situation where it shows up. For this situation, I get the following errors: `log.js:24 [HMR] Waiting for update signal from WDS... client:222 [WDS] Disconnected! |
I get following errors after reinstalling node_modules and getting new webpack-dev-server
And it just keeps pouring. Once every about 2 seconds. Downgrading helped Command: webpack-dev.config.js
|
Fixed in master, you should use |
For future please don't put you big configuration in issue, it is hard to understand and read, please put minimum reproducible test repo link, thanks |
Also you don't need include |
Ah, hot replacement has never worked for me. I guess that is why. So I only need the entries for production? Ok, that really eliminates most of the need for a shared config file. I will give it a try. |
i'm running into this after upgrading to 3.3.1 from 3.2.1 the issue here is that in our case html is served by a completely unrelated piece of tech (rails), so i'm certain there's no confusion between server and client config, i.e. our web just points to the webpack-dev-server URL and on initial load everything gets bundled fine, but then it tries to hit the wrong websocket endpoint. in our case html is served from |
this issue is caused by #1664 |
I already written what we need revert this commit, PR welcome |
any update on that? the issue still exists in 3.8.1 |
This should be emphasized more. In fact, webpack-dev-server should throw an error if you try to do this -- manually adding I spent about 3 hours trying to debug this obscure issue, for what ended up as a 1-3 line fix. ^_^ (Hard to debug because I didn't realize the debugger was hitting into two separate instances of webpack-dev-server, only one of which was receiving the incorrect host/port information.) I don't have time to go into it all, but here is the commit where I solved my issue: Venryx/mobx-devtools-advanced@d1fdb0d#diff-2c81437e455a833c25e31879ed05c465 Related: |
Code
Note that the above config is really split into common config (between dev and prod) and dev config. I merged them here to show the dev config that is driving WDS
My project is a .Net project so .Net is serving up the website, not WDS and that is the root of the problem, I think. Each .Net page has its own entry point that is being bundled
Expected Behavior
The site is being served on localhost:50447 but WDS is serving the JS files on localhost:8080.
I see a tone of these requests:
http://localhost:50447/sockjs-node/info?t=...
These should not be going to localhost:50447, they should be going to localhost:8080.
Actual Behavior
the sockjs-node request is being made to the web site web server rather than WDS.
At this point WDS is not able to talk with the client so all those great features are no longer working.
For Bugs; How can we reproduce the behavior?
you need a situation where you serve your web site from one server and WDS from another server (ie, port). It looks like it will happen all the time with this situation.
For Features; What is the motivation and/or use-case for the feature?
The text was updated successfully, but these errors were encountered: