The plugin is great. We have created 9 different animations, with 6 of them working flawlessly. The final 3 all seem to have issues. One renders alright, but certain elements are out of place and not animated. Two others just throw console errors like crazy. I'd be happy to send the AE file, however would prefer not to make it publicly available. Is there an email I can send it to for help?
[Error] Error: Invalid value for
that looks like an expression issue
you can email me the project to [email protected] and I'll check it
File sent. Thank you.
@bodymovin I seem to be having a similar issue, and I've attached a screenshot of my console logs. I was wondering what the solution for this was?

!!! SORRY, All I had to do was change the attribute being defined from animationData to path
@Tswan nice! :)
I have the same issue like @Tswan.
This is my code
import bodymovin from 'bodymovin'
export const heroHomeSvgAnimation = () => {
const animationData = require('./json/item-man-home-hero.json')
const animationItem = bodymovin.loadAnimation({
wrapper: document.getElementById('svgItemManHero'),
animType: 'svg',
loop: true,
animationData
})
}
where animationData is this file converted in simple json file.
any hint?
i've tried to changeanimationData to path and this is the result:

Thank you so much!
@giacomoalonzi can you share a link where it fails so I can check the error?
@giacomoalonzi in my case it required me to write a path to the json file. It could be absolute or relative, but the way I did it so the script started from the root directory was:
var myBodyMovinVariable = bodymovin.loadAnimation({
container: document.getElementById('example'), // the dom element
renderer: 'svg',
loop: false,
autoplay: false,
path: 'inFolderLocatedInMyRootDirectory/js/data.json' //Could be 'js/data.json' if the js folder in in the root
});
I'm thinking this may be related to writing the correct path?
Should be animationData: animationData.default
Works for me:
const animationData = require('./box.json')
const defaultOptions = {
loop: true,
autoplay: true,
animationData: animationData,
rendererSettings: {
preserveAspectRatio: 'xMidYMid slice'
}
}
return ( <Lottie options={defaultOptions} height={400} width={400} /> )
Should be
animationData: animationData.default
Works for me! But how you know that's are the solution?
Most helpful comment
Should be
animationData: animationData.defaultSee: https://github.com/chenqingspring/vue-lottie/issues/20