sveltekit-superforms icon indicating copy to clipboard operation
sveltekit-superforms copied to clipboard

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

Open Serator opened this issue 1 year ago • 5 comments

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?

Serator avatar May 07 '24 19:05 Serator

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

ciscoheat avatar May 07 '24 19:05 ciscoheat

Looks like an acceptable temporary solution. Thanks! 👍🏻

Serator avatar May 07 '24 19:05 Serator