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

Superforms is not compatible with Svelte 5 (preview) in rune mode #426

Open
Serator opened this issue May 7, 2024 · 2 comments
Open

Superforms is not compatible with Svelte 5 (preview) in rune mode #426

Serator opened this issue May 7, 2024 · 2 comments
Labels
documentation Improvements or additions to documentation svelte-5 Related to Svelte 5

Comments

@Serator
Copy link

Serator commented May 7, 2024

Hi and thank you for the awesome library!

When using Superforms in runes mode on the entire app (https://svelte-5-preview.vercel.app/docs/runes#how-to-opt-in) in Svelte 5, an error is thrown: "...SuperDebug.svelte:90:1 Cannot use `export let` in runes mode - use `$props()` instead".

Link for reproduction: https://stackblitz.com/edit/vitejs-vite-z2xcch?file=src%2Froutes%2F%2Bpage.svelte

"svelte": "^5.0.0-next.123",
"sveltekit-superforms": "^2.13.1",
image

Are there plans to support a rune mode in the near future?

@ciscoheat
Copy link
Owner

This is probably why that happens: #306 (comment)

@ciscoheat ciscoheat added documentation Improvements or additions to documentation svelte-5 Related to Svelte 5 and removed bug Something isn't working labels May 7, 2024
@Serator
Copy link
Author

Serator commented May 7, 2024

Looks like an acceptable temporary solution. Thanks! 👍🏻

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation svelte-5 Related to Svelte 5
Projects
None yet
Development

No branches or pull requests

2 participants