-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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 fails to connect when linked externally. #6061
Comments
So all combinations I can think of are:
|
I just found that #6005 also breaks HMR for web extensions with EDIT: After looking again everything is fine with |
What I'm seeing on a fresh install (version 2.3.2) after following the official Web Extension recipe:
|
@drmercer Have you been doing |
🐛 bug report
Since #6005 landed, I am unable to use HMR with Parcel acting as an external server. That is, I have another server that renders our HTML and includes the Parcel build output via a
<script>
tag. It uses the port of the HTML rendering server when trying to connect to the HMR WebSocket.🎛 Configuration (.babelrc, package.json, cli command)
CLI command:
🤔 Expected Behavior
It should use the port number explicitly in the generated output for the HMR runtime.
😯 Current Behavior
My HTML rendering server runs on port 10000, so I get this message in my browser:
💁 Possible Solution
Side note: I noticed that
--hmr-port
does set the port in the runtime, but doesn't actually open a server on that port for updates. That might be a possible solution.Maybe add a
--no-hmr-port
option to resolve the issue #6005 was trying to address, but revert the change for the default case.🌍 Your Environment
The text was updated successfully, but these errors were encountered: