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

How to import from CDN? #135

Open
emilhe opened this issue Aug 6, 2021 · 0 comments
Open

How to import from CDN? #135

emilhe opened this issue Aug 6, 2021 · 0 comments

Comments

@emilhe
Copy link

emilhe commented Aug 6, 2021

I tried to import react-lottie from CDN since the bundle size is large. I used this url,

https://cdn.jsdelivr.net/npm/[email protected]/dist/index.js

and got the following error,

index.js:3 Uncaught ReferenceError: exports is not defined
    at index.js:3

I am doing something wrong? Should I use a different url?

image

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

1 participant