Skip to content
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

lottie-web issue with svelte kit #13

Open
MinamiFunakoshiTR opened this issue Oct 13, 2021 · 0 comments
Open

lottie-web issue with svelte kit #13

MinamiFunakoshiTR opened this issue Oct 13, 2021 · 0 comments
Assignees

Comments

@MinamiFunakoshiTR
Copy link
Contributor

There's an issue with lottie-web when the LottieScroller component is pulled from node_module. The issue goes away when LottieScroller is put in lib/ instead of node_modules.

There seems to be a known issue with lottie-web and svelte kit

I've tried a few things:

  1. In AnimationMaker.js, this is the error I get when I import lottie-web like this: import * as bodymovin from 'lottie-web';

with *

  1. In AnimationMaker.js, this is the error I get when I import lottie-web like this: import bodymovin from 'lottie-web';
    without *

  2. Added this to package.json and ran yarn. optimizeDeps: { include: ["lottie-web"], },

None of the steps solved the issue. In the meantime, if a project needs to use LottieScroller before you're back, I'll get them to put LottieScroller in lib/ instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants