-
-
Notifications
You must be signed in to change notification settings - Fork 5.3k
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
[RFR] Warn About Outdated Material-UI version #2228
Conversation
@@ -53,6 +53,7 @@ | |||
"react-transition-group": "^2.2.1", | |||
"recompose": "~0.26.0", | |||
"redux": "~3.7.2", | |||
"redux-form": "~7.4.0" | |||
"redux-form": "~7.4.0", | |||
"warning": "^4.0.2" |
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.
We didn't use the warning
package for all other warnings. I think we should either drop it or use it everywhere
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.
we can drop it here
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.
It is used on ra-core.
bf2c459
to
aa25b66
Compare
Review applied |
In fact, I think it's the responsibility of material-ui to do that. React warns developers if there are more than one version loaded, material-ui should do the same. |
Nvm, I opened an issue on MUI about this. mui/material-ui#12781 |
|
Here is a small idea that I found to warn developers about the outdated Material-UI issue on production (#1782).
It can be added in addition to #2215. I've considered other alternatives like throwing an error at the build phase or read the
@material-ui/core/package.json
but it's the less intrusive method I found.Here is the result on the console: