Closed
Description
Describe the bug
If a sub-rune like $state.x()
does not exist, the error in a .svelte.js
file states:
rune_outside_svelte
The$state
rune is only available inside.svelte
and.svelte.js/ts
files
(Same for other runes like $effect
, found via the now missing $effect.active()
.)
Reproduction
// test.svelte.js
export let count = $state.x({ value: 0 });
Logs
No response
System Info
REPL
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels