admin管理员组

文章数量:1334653

I'm using @lottiefiles/dotlottie-react in my project to show .lottie files but when I pass loop={true} to DotLottieReact it cause below error :

This error only when I'm using .lottie files occures but when I replace it with .json file the error does not occur but I should use .lottie format only. How can I fix this error?

I'm using @lottiefiles/dotlottie-react in my project to show .lottie files but when I pass loop={true} to DotLottieReact it cause below error :

This error only when I'm using .lottie files occures but when I replace it with .json file the error does not occur but I should use .lottie format only. How can I fix this error?

Share Improve this question asked Nov 20, 2024 at 7:21 N.SHN.SH 6931 gold badge8 silver badges22 bronze badges
Add a comment  | 

1 Answer 1

Reset to default 0

React Strict Mode can lead to extra renders or warnings that might not be handled well by certain libraries.

Solution: Try removing <React.StrictMode> in your main entry file to see if it resolves the issue.

import ReactDOM from 'react-dom';
import App from './App';

ReactDOM.createRoot(document.getElementById('root')).render(
  // Remove <React.StrictMode> for testing purposes
  <App />
);

本文标签: reactjsDotLottie ReactRuntime Error Memory access out of boundsStack Overflow