#Rollup failed to resolve import
16 messages · Page 1 of 1 (latest)
Hi 👋
are you deploying to edge?
if so take a look here -> https://docs.astro.build/en/guides/integrations-guide/vercel/#includefiles
unless there is a problem with integration itself 
If i’m being honest i’m not sure. All I’ve done is deploy on the default config for astro and my site is static
I’ll try this 👍
Yeah it looks like there's a problem with the integration itself. Do you know of an astro alternative to https://github.com/giuseppelt/astro-lottie/?
I installed the vercel adapter and included my json file like in the docs and got the same error
I removed the lottie integration and my deploy worked fine
I'm gonna try luge instead
Idk about lottie but you can try using https://github.com/airbnb/lottie-web from airbnb directly in the astro
Render After Effects animations natively on Web, Android and iOS, and React Native. http://airbnb.io/lottie/ - GitHub - airbnb/lottie-web: Render After Effects animations natively on Web, Android a...
Yep this is what I ended up doing and it worked for me
<div class="animation"></div>
<script>
import lottie from 'lottie-web';
import myAnimation from '../../public/realEditedLottie.json';
const animationContainer = document.querySelector('.animation');
lottie.loadAnimation({
container: animationContainer,
renderer: 'svg',
loop: true,
autoplay: true,
animationData: myAnimation,
});
</script>
That's the code in particular incase you'd like to use lottie
The airbnb documentation is a maze only to find that much code.