Replies: 1 comment 1 reply
-
Could you provide a reproduction, either via the playground or by sharing a link to a repository? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm running into issues using Svelte 5 with esbuild when importing
.svelte
files from another package.This setup worked fine in Svelte 4, but in Svelte 5 I'm seeing the following error:
My Setup
esbuild
withesbuild-svelte
andsvelte-preprocess
.svelte
components directly from another package (uncompiled.svelte
files)$effect
internallyIn Svelte 4, this worked without problems. In Svelte 5, I consistently hit this
effect_orphan
error — which seems to suggest that effects are not properly registered or that component code isn't being compiled in the expected context.Workaround
If I copy the component into my app instead of importing it from the package, it works.
Questions
Is there something special required to support
$effect
/Svelte 5 reactivity when importing non-precompiled.svelte
files using esbuild?Beta Was this translation helpful? Give feedback.
All reactions