Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

HMR not working with custom port #328

Closed
1 of 4 tasks
axelboc opened this issue Jun 19, 2017 · 3 comments
Closed
1 of 4 tasks

HMR not working with custom port #328

axelboc opened this issue Jun 19, 2017 · 3 comments
Labels

Comments

@axelboc
Copy link

axelboc commented Jun 19, 2017

This issue is a:

  • Bug report
  • Feature request
  • Question / support request
  • Other

I'm trying to customise the dev-server port, which I understand is possible thanks to PR #279, but I'm getting this in the browser console when I run nwb serve-react-app --port 3333:

screen shot 2017-06-19 at 3 05 40 pm

It keeps logging stuff continuously. Am I missing something? Here is a text version (for search engines) of the output a bit further down the logs:

[HMR] Waiting for update signal from WDS... only-dev-server.js:66
POST XHR http://localhost:3333/193/enj4cgja/xhr_streaming [HTTP/1.1 404 Not Found 3ms]
GET XHR http://localhost:3333/193/fiytg1pr/eventsource [HTTP/1.1 404 Not Found 3ms]
Firefox can’t establish a connection to the server at http://localhost:3333/193/fiytg1pr/eventsource. eventsource.js:18
GET http://localhost:3333/iframe.html#dddp1zl2 [HTTP/1.1 404 Not Found 2ms]
[HMR] Waiting for update signal from WDS... only-dev-server.js:66
TypeError: u.getComputedStyle(...) is null[Learn More] widgets.js:9:15499
GET http://localhost:3333/iframe.html#tnq1uca1 [HTTP/1.1 404 Not Found 1ms]
POST XHR http://localhost:3333/193/2fygeewc/xhr [HTTP/1.1 404 Not Found 1ms]
GET http://localhost:3333/iframe.html#4eumfpap [HTTP/1.1 404 Not Found 2ms]
POST XHR http://localhost:3333/967/hckwwxku/xhr_streaming [HTTP/1.1 404 Not Found 1ms]
GET XHR http://localhost:3333/967/solocyrg/eventsource
...

I'm using:

  • Node.js 6.9.3
  • Yarn 0.24.6
  • nwb 0.17.0
@insin
Copy link
Owner

insin commented Jun 19, 2017

v0.17.0 switched to Webpack Dev Server for nwb serve... comands - it looks like its client doesn't like the configuration we pass it when customising the host or port. Fix coming soon.

@insin insin added the bug label Jun 19, 2017
@insin insin closed this as completed in f0d445e Jun 19, 2017
@insin
Copy link
Owner

insin commented Jun 19, 2017

Fixed in v0.17.1 - thanks for reporting this!

@axelboc
Copy link
Author

axelboc commented Jun 19, 2017

Awesome, thanks for the quick fix and release!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

2 participants