Animation disappearing in Firefox

Hello everybody, I have an issue: lottiefiles on a website I am making are working in Safari and Chrome, but they disappear in Mozilla Firefox. There is this error in Firefox:
Uncaught DOMException: CustomElementRegistry.define: ‘lottie-player’ has already been defined as a custom element
1 custom-element.js:21
1 custom-element.js:64
__decorate tslib.es6.js:58

How do I solve this? Thanks for your responses.