$ errors.fyi/svelte/effect_orphan 128 namespaces · 4,025 codes
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(...)`.

References

In this namespace

» community-maintained · contribute on GitHub npm i -g errors-fyi && errorfyi ENOENT