Skip to content

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

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

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

Conversation

@bharatkashyap

@bharatkashyap bharatkashyap commented Jan 4, 2025

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

@mui-bot

mui-bot commented Jan 4, 2025

Copy link
Copy Markdown

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
Copy Markdown
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?

@bharatkashyap bharatkashyap Jan 6, 2025

Copy link
Copy Markdown
Collaborator Author

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
Copy Markdown
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
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Copy link
Copy Markdown
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