lottie-player
lottie-player copied to clipboard
Window is not defined - Angular 17
Hi !
I just updated my project to Angular 17, and I'm using modern compilation method with Vite.
I have an issue with lottie-player , I get the following error: [vite] Internal server error: window is not defined
during the compilation.
at eval (/home/user/Projects/Angular/angular-project/.angular/vite-root/angular-project/node_modules/.pnpm/@[email protected]/node_modules/@lottiefiles/lottie-player/dist/lottie-player.esm.js:1359:9)
at async instantiateModule (file:///home/user/Projects/Angular/angular-project/node_modules/.pnpm/[email protected]_@[email protected][email protected][email protected][email protected]/node_modules/vite/dist/node/chunks/dep-bb8a8339.js:56052:9)
Version :
- Angular: 17
- lottie-player : 2.02