Gamote / lottie-react

A lightweight React library for rendering complex After Effects animations in real time using Lottie.
https://lottiereact.com
Other
793 stars 59 forks source link

Lottie React build failure (eval is deprecated) #98

Open SpaceHolderdJs opened 1 year ago

SpaceHolderdJs commented 1 year ago

Hello Everyone!

I am using lottie-react with "react": "^18.2.0", and Vite and facing the issue after running the build command.

Here is the output of the terminal

image

I am wondering if there is any way to fix it, would be grateful for any support, thanks!

pramesh07 commented 1 year ago

yeah am also facing the same issue due to use of eval am also using react 18.2.0 and vite

patrickleogit commented 1 year ago

I am facing the same issue with React 18.2.0, Typescript 4.9.5 and Vite 4.5.0

Baalamurgan commented 1 year ago

Same here with Next 13.4.19, Typescript 5.2.2, React 18.2.0

Error occurred prerendering page "/". Read more: https://nextjs.org/docs/messages/prerender-error ReferenceError: document is not defined at createTag

Supcar27 commented 1 year ago

I am also facing this issue with React 18.2

SteveBehm commented 1 year ago

The company I work for has a Next.js/React app and I have experienced this issue during build and I have been unable to resolve it.

If anyone has a workaround for the time being that would be helpful.

Screenshot 2023-11-09 at 1 22 06 PM
w-bouzazi commented 11 months ago

Same issue on my end.

kevinvugts commented 6 months ago

Is this something that can be picked up by you @Gamote ?