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

vite always refresh and connecting #2968

Closed
6 tasks
xiaomuzizier opened this issue Apr 13, 2021 · 4 comments
Closed
6 tasks

vite always refresh and connecting #2968

xiaomuzizier opened this issue Apr 13, 2021 · 4 comments

Comments

@xiaomuzizier
Copy link

Describe the bug

I use whistle ,config:
image

vite config:
image

when i use vite ,my page 'https://cms.fcc.qq.com/home'always refresh, always show [vite] connecting.

image

I think 。maybe whistle redirect to 'localhost:30010' multiple times ?

can it not refresh?

Reproduction

System Info

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

Used package manager:

Logs


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

  • Read the Contributing Guidelines.
  • Read the docs.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Provide a description in this issue that describes the bug.
  • Make sure this is a Vite issue and not a framework-specific issue. For example, if it's a Vue SFC related bug, it should likely be reported to https://github.com/vuejs/vue-next instead.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
@pedrodim
Copy link
Contributor

pedrodim commented Apr 13, 2021

Try to set server.hmr.host as localhost.

By default vite's client try to connect to a WS on location.hostname if you don't use any config for hmr, in your case it would be wss://cms.fcc.qq.com:30010.

@xiaomuzizier
Copy link
Author

Try to set server.hmr.host as localhost.

By default vite's client try to connect to a WS on location.hostname if you don't use any config for hmr, in your case it would be wss://cms.fcc.qq.com:30010.

@pedrodim thx!!I try it,and I successed!

@Shinigami92
Copy link
Member

@xiaomuzizier Can this issue be closed?

@xiaomuzizier
Copy link
Author

@xiaomuzizier Can this issue be closed?

yes.

@xiaomuzizier xiaomuzizier mentioned this issue Apr 16, 2021
6 tasks
@github-actions github-actions bot locked and limited conversation to collaborators Jul 16, 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

4 participants