-
-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[ci] Fix CI failing due to Recharts console error #4576
Conversation
Netlify deploy preview |
@@ -15,6 +15,13 @@ test.use({ | |||
localAppConfig: { | |||
cmd: 'dev', | |||
}, | |||
ignoreConsoleErrors: [ | |||
// React setState warning inside "Recharts" |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Don't see any warnings in the console: https://codesandbox.io/p/sandbox/mutable-snow-x2kx55?file=%2Fsrc%2FApp.tsx
There was a problem hiding this comment.
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
.
setState
call related warning to show up in the console and fail the test