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

server.hmr.clientPort only works if middlewareMode is provided #3853

Closed
6 tasks done
eddeee888 opened this issue Jun 18, 2021 · 2 comments
Closed
6 tasks done

server.hmr.clientPort only works if middlewareMode is provided #3853

eddeee888 opened this issue Jun 18, 2021 · 2 comments

Comments

@eddeee888
Copy link

Describe the bug

server.hmr.clientPort only works if middlewareMode is provided.

Is this intentional? It feels like the client should be allowed to use any arbitrary port. It feels a bit odd to be tied to any server config.

I'm also new to Vite so there could be some missing context that I couldn't find from the issues. Please let me know. 🙏

Reproduction

This can be seen here.

System Info

Output of npx envinfo --system --npmPackages vite,@vitejs/plugin-vue --binaries --browsers:

System:
    OS: macOS 11.4
    CPU: (16) x64 Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz
    Memory: 45.78 GB / 64.00 GB
    Shell: 5.8 - /bin/zsh
  Binaries:
    Node: 12.13.1 - ~/.nvm/versions/node/v12.13.1/bin/node
    Yarn: 1.22.5 - ~/.yarn/bin/yarn
    npm: 6.12.1 - ~/.nvm/versions/node/v12.13.1/bin/npm
    Watchman: 4.9.0 - /usr/local/bin/watchman
  Browsers:
    Chrome: 91.0.4472.106
    Safari: 14.1.1
  npmPackages:
    vite: ^2.3.7 => 2.3.7

Used package manager: yarn

Before submitting the issue, please make sure you do the following

@patak-dev
Copy link
Member

Duplicate of #3737

@patak-dev patak-dev marked this as a duplicate of #3737 Jun 26, 2021
@github-actions
Copy link

This issue gets locked because it has been closed for more than 14 days.

@github-actions github-actions bot locked and limited conversation to collaborators Jul 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants