Skip to content

[ci] Fix CI failing due to Recharts console error#4576

Merged
bharatkashyap merged 3 commits intomui:masterfrom
bharatkashyap:fix/ci
Jan 6, 2025
Merged

[ci] Fix CI failing due to Recharts console error#4576
bharatkashyap merged 3 commits intomui:masterfrom
bharatkashyap:fix/ci

Conversation

@bharatkashyap
Copy link
Collaborator

@bharatkashyap bharatkashyap commented Jan 4, 2025

  • "alpha" causes a setState call related warning to show up in the console and fail the test

@mui-bot
Copy link

mui-bot commented Jan 4, 2025

Netlify deploy preview

https://deploy-preview-4576--mui-toolpad-docs.netlify.app/

Generated by 🚫 dangerJS against 4bdaa23

@bharatkashyap bharatkashyap marked this pull request as ready for review January 6, 2025 05:34
@bharatkashyap bharatkashyap requested a review from Janpot January 6, 2025 06:04
cmd: 'dev',
},
ignoreConsoleErrors: [
// React setState warning inside "Recharts"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there a bug in recharts? Or are we holding it wrong on toolpad side?

Copy link
Collaborator Author

@bharatkashyap bharatkashyap Jan 6, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I couldn't find a Recharts bug report, but also couldn't find anything we're doing wrong with Recharts in the test that's failing

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it reproducible in isolation?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As per DM, we should set recharts version from alpha to ^2.15.0.

@bharatkashyap bharatkashyap requested a review from Janpot January 6, 2025 13:57
@bharatkashyap bharatkashyap merged commit b9962d1 into mui:master Jan 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants