runes
2 traces
- Cannot use `export let` in runes mode — use `$props()` instead (Svelte 5)Svelte 5 compiler error legacyexportinvalid: This happens when a component uses a rune such as $state, $derived or $props (which switches it to runes mode) and also declares props the Svelte 3/4 way with export let.…
- `$:` is not allowed in runes mode, use `$derived` or `$effect` instead (Svelte 5)Svelte 5 compiler error legacyreactivestatementinvalid: This happens in a component that uses any rune and also has a Svelte 4 reactive statement such as $: doubled = count 2. Fix: Use $derived for values (the usual…