Closed pdkn closed 3 years ago
This PR https://github.com/LottieFiles/lottie-react/pull/52/files has created breaking changes for nextjs integrations as window may not be defined at build time. Please wrap it in.
if (typeof window !== "undefined") { window.lottie = lottie; }
Hi @pdkn thanks for your issue, this is fixed in v3.4.1.
Overview
This PR https://github.com/LottieFiles/lottie-react/pull/52/files has created breaking changes for nextjs integrations as window may not be defined at build time. Please wrap it in.