svelte · svelte/effect_orphan
effect_orphan
Effect Orphan
`$effect()` was called outside of any effect tree — for example, during module evaluation or in a plain function called from outside component initialisation. Effects can only be created inside a component, or inside another effect/`$effect.root(...)`.