<lottie-player> src path doesn't work on local

Hi there !
When I put the lottie-player inside my VueJs code and the animation is from the lottiefiles’ website : it’s working fine. But if my animation.json is inside my code, I get this error in the console :

Uncaught DOMException: Failed to read the ‘responseText’ property from ‘XMLHttpRequest’: The value is only accessible if the object’s ‘responseType’ is ‘’ or ‘text’ (was ‘json’).

Can’t figure out why. Does someone has the solution ?