最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - DotLottie React - Runtime Error: Memory access out of bounds - Stack Overflow

programmeradmin0浏览0评论

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 />
);
发布评论

评论列表(0)

  1. 暂无评论