-
-
Notifications
You must be signed in to change notification settings - Fork 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
HMR indefinitely reloads on startup after upgrading to 1.0.0-next.169
#2519
Comments
Please, use port 443 and |
@moisesbites - Thanks. In my case the port should be
|
For version "@sveltejs/kit": "^1.0.0-next.178", maybe you will need to put '--host 0.0.0.0' in the "scripts": {
"dev": "svelte-kit dev --host 0.0.0.0",
"start": "svelte-kit start --host 0.0.0.0",
"preview": "svelte-kit preview --host 0.0.0.0",
....
} |
Okay, finally I found the trick. So I don't even know how it works before version next This config solved the problem for me. (http)
|
Describe the bug
Upgrading from
1.0.0-next.168
to1.0.0-next.169
onward causes an infinite reload cycle on startup.I believe the issue is from the Vite HMR config no longer working / being passed after this PR. Might also be a similar issue as what was resolved in 0f06e35
I run a dotnet backend with SSL on
https://localhost:5443
and needed this configuration to allow the proxy tohttp://localhost:3000
to work.What's interesting is if I remove the hmr config above, accessing the Vite server directly at
http://localhost:3000
does not reload indefinitely, but if I leave the config in place,http://localhost:3000
also indefinitely reloads on startup.Reproduction
https://github.com/techniq/sveltekit-hmr-reload-issue
Logs
No response
System Info
Severity
blocking an upgrade
Additional Information
No response
The text was updated successfully, but these errors were encountered: