-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SvelteKit issue #2
Comments
Same issue is happening here. I am using the same code from the README and getting this exact error |
me too same issue :
inside HTML tag :
Hope to be fixed soon .. Any work around @Rich-Harris ? |
@rakanus the solution does not work with the lattest svelte-kit. The package by itself works fine in the pure svelte env though, but with the svelte-kit it does not :((( Any ideas from the author? |
This is an issue with vite and not svelte-kit. optimizeDeps: {
include: ["lottie-web"],
}, to your vite.config.js file. lottie-web needs to be in the package.json dependencies for this to work, not devDependencies or anything else. |
Hi, Do have a look at the working solution on #7 , built and ran yarn preview on a basic app and the player looks to render okay. Try it out and let me know if the same error still persists |
svelte-lottie-player seems not to work with the latest sveltekit (SvelteKit v1.0.0-next.113).
Here is the error message:
SyntaxError: The requested module '/node_modules/lottie-web/build/player/lottie.js?v=8db5e539' does not provide an export named 'default'
The text was updated successfully, but these errors were encountered: