Skip to content

--hmr-host is not available #5268

@ranisalt

Description

@ranisalt

🐛 bug report

I'm trying to configure the host that hot module replacement responds, since I am developing in a remote machine but accessing from local browser.

🎛 Configuration (.babelrc, package.json, cli command)

Zero configuration

🤔 Expected Behavior

Running parcel serve ... --host 0.0.0.0 --hot-host 12.34.56.78 should make the hot module replacement connect to the socket in wss://12.34.56.78:1234 instead of wss://127.0.0.1:1234 or wss://0.0.0.0:1234

😯 Current Behavior

It errors with

error: unknown option '--hot-host'

Even if prepending --hot it does not work:

error: unknown option '--hot-host'

However, the README states those flags exist, and I see that HMRRuntime.js tries to use these. I assume that --hot-port will also not work.

🌍 Your Environment

Software Version(s)
Parcel v2.0.0-nightly.429
Node v14.12.0
npm/Yarn v1.22.5
Operating System Ubuntu 20.04.1 LTS

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions