如何解决IE11 不支持 Reactjs recharts 2.0.8 版
我使用的是 recharts 2.0.8 版,在 chrome 和一些新浏览器中运行良好,但 IE11 阻止了所有 UI,但是当我将版本降低到 1.8.11 时,它运行良好,并且图表正在 IE11 上加载。 recharts 2.0.8 版是否有任何解决方法可以在 IE11 上运行? 这些错误也得到了安慰。 -
错误日志 -
The above error occurred in the <ResizeDetector> component:
in ResizeDetector (created by ResponsiveContainer)
in ResponsiveContainer (at donut-chart-widget.tsx:239)
in div (at donut-chart-widget.tsx:231)
in DonutChartWidget (at dashboard-widget.tsx:57)
in section (at dashboard-widget.tsx:126)
in DashboardWidget (at dashboard.tsx:45)
in div (at dashboard.tsx:42)
in div (at dashboard.tsx:41)
in Dashboard (at app-route.tsx:122)
in Route (at app-route.tsx:113)
in PrivateRouteComponent (created by ConnectFunction)
in ConnectFunction (at app-route.tsx:258)
in Switch (at app-route.tsx:232)
in main (at layout.tsx:38)
in div (at layout.tsx:29)
in Layout (at app.tsx:13)
in App (at src/index.tsx:36)
in Router (created by browserRouter)
in browserRouter (at src/index.tsx:35)
in Provider (at src/index.tsx:34)
“错误 2”
Warning: Can't perform a React state update on an unmounted component. This is a no-op,but it indicates a memory leak in your application. To fix,cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
in DonutChartWidget (at dashboard-widget.tsx:57)
in section (at dashboard-widget.tsx:126)
in DashboardWidget (at dashboard.tsx:45)
in div (at dashboard.tsx:42)
in div (at dashboard.tsx:41)
in Dashboard (at app-route.tsx:122)
in Route (at app-route.tsx:113)
in PrivateRouteComponent (created by ConnectFunction)
in ConnectFunction (at app-route.tsx:258)
in Switch (at app-route.tsx:232)
in main (at layout.tsx:38)
in div (at layout.tsx:29)
in Layout (at app.tsx:13)
in App (at src/index.tsx:36)
in Router (created by browserRouter)
in browserRouter (at src/index.tsx:35)
in Provider (at src/index.tsx:34)
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。