micha-lmxt/svelte-motion

Animations don't load/run when built statically

oskarpyk opened this issue · 2 comments

I would post an error log, but it appears to fail silently -- both during build and at runtime. All animations / whileTap events work properly when served with hot reload (npm run dev), but stop working as soon as it's served statically using npm run build && npm run start or npx http-server. I'm using a standard rollup, svelte-spa-router setup. I'm confused, seeing as I imagine npm run dev performs the same build process as a static build, only that it's being served on-demand. Any pointers on how to debug this?

My best guess is that some rollup-plugin is interfering / something about the output format is causing errors.

@oskarpyke, did you manage to somehow fix this?
I'm having the same issue with astro + svelte right now.