chadly / gatsby-remark-lottie

Gatsby remark plugin to embed lottie JSON animations with SVG placeholders
https://www.chadly.net/web-animation/
MIT License
5 stars 0 forks source link

Fails on production build #1

Open thiagosolcia opened 4 years ago

thiagosolcia commented 4 years ago

Hi! thanks for this very handy plugin 😃 The only problem is that it fails when I run a production build (see attachment). Any idea on how to fix it?

gatsby-remark-lottie-issue

This is how I'm using it.

component
chadly commented 4 years ago

what does your gatsby-config look like?

thiagosolcia commented 4 years ago

like this gatsby-config

chadly commented 4 years ago

try moving gatsby-remark-lottie first before gatsby-remark-images

thiagosolcia commented 4 years ago

Yes! that seems to do the trick :) Thank you! But now I'm getting another error. The plugin tries to load the json from the root public/ directory even though I have the json next to the .md file. I'm not sure what I did wrong here.

plugin-issue
mzane42 commented 3 years ago

@thiagosolcia did you find a solution for your last problem ? i'm stacked too

chadly commented 3 years ago

I'm not sure about the file path problem. I think that has to do with configuration outside of this plugin. One plugin I always make use of (and may help with this issue) is the gatsby-remark-copy-linked-files plugin. Maybe give that a try?