BizCharts Issue with Chart Visualization in React/Next.js Project Using StrictMode

t3irkdon  于 4个月前  发布在  React
关注(0)|答案(1)|浏览(40)

Hello,

I am encountering an issue with displaying charts from bizcharts in a React/Next.js project when StrictMode is enabled. The charts do not appear while StrictMode is active.

Steps to Reproduce:

  1. Create a new project using npx create-next-app@latest.
  2. Install bizcharts with npm i bizcharts.
  3. The code added to the main page of the application can be found in the attached image.
  4. Launch the application with npm run dev.
  5. Notice that the charts are not rendered.

Attempted Solutions:

  • After stopping the application and changing reactStrictMode: false in next.config.js, the charts render correctly.
  • Tested changing react-reconciler to version 0.29.0.
  • The project was also tested with installation via yarn.

Question:
Is it possible for bizcharts to work with React version ^18 without disabling StrictMode?

Thank you in advance for your assistance!

相关问题