Skip to content
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

v2: hmr isn't working if PORT not set #582

Closed
gregmartyn opened this issue Apr 13, 2018 · 7 comments
Closed

v2: hmr isn't working if PORT not set #582

gregmartyn opened this issue Apr 13, 2018 · 7 comments
Labels

Comments

@gregmartyn
Copy link
Contributor

This is for the "next" branch.

If the PORT environment variable isn't specified, webpackHotDevClient.js is using window.location.port for the SockJS connection when it should be window.location.port + 1.

Additionally, if the page is served on port 80, then window.location.port = ''. I'm only hitting that because I have razzle.config.js removing PORT from the DefinePlugin array as a stopgap until #528 moves forward. Regardless, it's a case that can be handled pretty easily.

I've created #581 to address both of those issues.

@stale
Copy link

stale bot commented Aug 15, 2018

Hola! So here's the deal, between open source and my day job and life and what not, I have a lot to manage, so I use a GitHub bot to automate a few things here and there. This particular GitHub bot is going to mark this as stale because it has not had recent activity for a while. It will be closed if no further activity occurs in a few days. Do not take this personally--seriously--this is a completely automated action. If this is a mistake, just make a comment, DM me, send a carrier pidgeon, or a smoke signal.

@stale stale bot added the stale label Aug 15, 2018
@gregmartyn
Copy link
Contributor Author

@jaredpalmer this is still an issue for me, fixed by the #581 pr.

@stale stale bot removed the stale label Aug 16, 2018
@stale
Copy link

stale bot commented Oct 15, 2018

Hola! So here's the deal, between open source and my day job and life and what not, I have a lot to manage, so I use a GitHub bot to automate a few things here and there. This particular GitHub bot is going to mark this as stale because it has not had recent activity for a while. It will be closed if no further activity occurs in a few days. Do not take this personally--seriously--this is a completely automated action. If this is a mistake, just make a comment, DM me, send a carrier pidgeon, or a smoke signal.

@stale stale bot added the stale label Oct 15, 2018
@gregmartyn
Copy link
Contributor Author

@jaredpalmer is there anything left to do for #581 to be accepted? Seems like a simple fix to me. window.location.port returns "" if port is 80, and that wasn't being handled by the existing code.

@stale stale bot removed the stale label Oct 15, 2018
@stale
Copy link

stale bot commented Dec 14, 2018

Hola! So here's the deal, between open source and my day job and life and what not, I have a lot to manage, so I use a GitHub bot to automate a few things here and there. This particular GitHub bot is going to mark this as stale because it has not had recent activity for a while. It will be closed if no further activity occurs in a few days. Do not take this personally--seriously--this is a completely automated action. If this is a mistake, just make a comment, DM me, send a carrier pidgeon, or a smoke signal.

@stale stale bot added the stale label Dec 14, 2018
@gregmartyn
Copy link
Contributor Author

still not stale

@stale stale bot removed the stale label Dec 14, 2018
@stale stale bot added the stale label Feb 12, 2019
@fivethreeo
Copy link
Collaborator

Fixed. Closing

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

No branches or pull requests

2 participants