ciscoheat/sveltekit-superforms

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

Opened this issue · 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?

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

Looks like an acceptable temporary solution. Thanks! 👍🏻

@ciscoheat noting here that this appears to still be happening for me after the upgrade to the latest release containing the SuperDebug fix.

You can replicate by going to the link for reproduction listed above, running npm install sveltekit-superforms@latest, and restarting the server via npm run dev.

Did you import the right component according to the SuperDebug page? https://superforms.rocks/super-debug

I imported it runes-style, see here for a reproducible demo.

Image Image