0

I get an error while deploying my REACT App on Vercel, Netlify etc. It seems it is related to lottiefiles. Does it mean I cannot use lottiefiles in my React App?

Refer to the screenshot for details.

https://i.sstatic.net/2ml9q.jpg

I tried updating my NPM, and reinstalling react-lottie. But it didn't resolve the issue.

1 Answer 1

0

At least on Netlify, you can solve this by adding a environment variable with the name NPM_FLAGS and the value as either --legacy-peer-deps or --force (whichever works for your setup).

As for why, you can refer to: https://stackoverflow.com/a/66035709/9579545

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.