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

SvelteKit Dev Server Infinite Loading #12020

Closed
IggyCeltic opened this issue Mar 22, 2024 · 9 comments
Closed

SvelteKit Dev Server Infinite Loading #12020

IggyCeltic opened this issue Mar 22, 2024 · 9 comments
Labels

Comments

@IggyCeltic
Copy link

Describe the bug

When running the sveltekit application, the appllication running at localhost:5173/ will infinitely load, even after all elements and network events have finished.

Reproduction

https://github.com/IggyCeltic/bug-repro

Logs

No response

System Info

System:
    OS: Windows 11 10.0.22631
    CPU: (16) x64 AMD Ryzen 9 7940HS w/ Radeon 780M Graphics
    Memory: 4.20 GB / 15.21 GB
  Binaries:
    Node: 20.11.1 - C:\Program Files\nodejs\node.EXE
    npm: 10.5.0 - C:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (122.0.2365.92)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    @sveltejs/adapter-auto: ^3.1.1 => 3.1.1
    @sveltejs/adapter-cloudflare: ^4.2.0 => 4.2.0
    @sveltejs/kit: ^2.5.4 => 2.5.4
    @sveltejs/vite-plugin-svelte: ^3.0.2 => 3.0.2
    svelte: ^4.2.12 => 4.2.12
    vite: ^5.2.3 => 5.2.3

Severity

serious, but I can work around it

Additional Information

Prevents all hot loading. In order to get changes refreshed have to stop the load and refresh the page.

@knd775
Copy link

knd775 commented Mar 23, 2024

This issue started with vite 5.2.0, but only seems to affect (some) sveltekit users

@buhodev
Copy link

buhodev commented Mar 23, 2024

I had the same issue. It's vite's fault in my case. I downgraded to v5.1.6 and it worked.

@IggyCeltic
Copy link
Author

It does look like downgrading to vite 5.1.6 might be fixing it for me as well.

@ghost
Copy link

ghost commented Mar 23, 2024

Downgrading to adapter-cloudflare 4.1.0 seems to be fixing it

@fredguest
Copy link

The relevant Vite issue -> vitejs/vite#16245

@ZerdoX-x
Copy link

ZerdoX-x commented Mar 23, 2024

I spent several hours debugging, this is the change that caused the issue: vitejs/vite#16135
Introduced in vite@5.2.0-beta.1
vite@5.2.0-beta.0 works fine

In my case vite breaks @inlang/paraglide-js-adapter-sveltekit, without it, in clean project, all works fine.

@arxpoetica
Copy link
Member

I added a repro to the ticket: vitejs/vite#16245 (comment)

@patak-dev
Copy link

Sorry for the regression, it will be fixed by vitejs/vite#16246. I'll cut a release tomorrow

@gtm-nayan
Copy link
Contributor

gtm-nayan commented Mar 24, 2024

The fix has been released in Vite 5.2.5. Thanks Matias.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

9 participants