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

Version 2.6.2 breaks my SvelteKit app, causing infinite loading on localhost #370

Closed
maoosi opened this issue Mar 1, 2024 · 3 comments
Closed
Labels
bug Something isn't working question Further information is requested

Comments

@maoosi
Copy link

maoosi commented Mar 1, 2024

I'm facing an issue with my SvelteKit app after updating sveltekit-superforms to version 2.6.2. The Vite development server starts as expected, with no apparent errors in the console. However, when I try to access the local app URL, it results in an infinite loading state. Same goes when attempting to ping the URL using curl, so not a browser-related problem.

My Superforms implementation is pretty simple and uses the provided zod adapter. The app was running fine on SvelteKit version 2.5.2 before the update. Downgrading sveltekit-superforms back to 2.5.0 immediately fixes the issue, allowing for normal access to the application on localhost. This indicates that the problem is specifically related to the latest release.

There are no errors or warnings to provide any leads; the current behaviour makes me think the latest version of sveltekit-superforms is potentially creating a deadlock or infinite loop that prevents the application from completing its loading process.

I haven't tried reproducing the issue on a fresh SvelteKit installation yet; I'm first posting to see if anyone else might have encountered the same issue since upgrading.

@maoosi maoosi added the bug Something isn't working label Mar 1, 2024
@ciscoheat
Copy link
Owner

Please try to make a MRE, I'll take a closer look then.

@ciscoheat ciscoheat added the question Further information is requested label Mar 2, 2024
@maoosi
Copy link
Author

maoosi commented Mar 9, 2024

@ciscoheat I have finally found the issue!

I still had some v1 imports using /client and /server. Removing these and importing directly from sveltekit-superforms resolved the infinite loading issue.

Might be worth adding this to the v2 migration guide?

@ciscoheat
Copy link
Owner

Good find, added to the migration guide now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants