ciscoheat / sveltekit-superforms

Making SvelteKit forms a pleasure to use!
https://superforms.rocks
MIT License
2.25k stars 65 forks source link

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

Open Serator opened 6 months ago

Serator commented 6 months ago

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 commented 6 months ago

This is probably why that happens: https://github.com/ciscoheat/sveltekit-superforms/issues/306#issuecomment-1891015986

Serator commented 6 months ago

Looks like an acceptable temporary solution. Thanks! 👍🏻