-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
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 keeps refreshing the page with logs stuck in connecting
#4463
Comments
I have encountered a similar problem. After using the proxy, the vite connection will be lost. Use HMR to specify the address. You can try it |
Same problem with sveltekit. Note that the production build works. |
The replication you provided, everything works fine with me, try the codesandbox you provided again, if it works, please provide a link to a repository that can replicate this issue. |
Sorry, I had this problem when I tried again myself, I will look into it. |
I'm having this issue as well, but I'm not sure if I'm just configuring something incorrectly. I'm using a reverse proxy (ORY Oathkeeper) which does TLS termination and trying to run SvelteKit's dev server in a Docker container. The site loads in the browser, but I'm seeing the same My
I feel like I've gone through every permutation of this config and Oathkeeper's to try to get this working, and have had no luck. It's not clear to me what the correct configuration of everything should be. What I want is for SvelteKit / Vite to be listening behind Oathkeeper, not aware of TLS at all. Should Is I've also found a |
@andrewbanchich Did you ever find a solution? |
@jsjoeio Yes, this config got it working for us. |
same issue, I'm trying to run vite on remote server on different url, vite itself runs on localhost:3000 over https |
Ok, I've managed to resolve it for myself. I've had to define host where vite is running, because by default it's taken from
|
thanks! |
I think the core issue is the same as #4259. Let's keep the conversation there. |
Describe the bug
Vite keeps refreshing the page and logs are stuck with
connecting...
server connection lost. polling for restart...
Reproduction
Here is the codesandbox of the official react template package. This one is stuck while I was trying (image above).
System Info
Used Package Manager
npm
Logs
[vite] connecting... [vite] server connection lost. polling for restart...
Validations
The text was updated successfully, but these errors were encountered: