Skip to content
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

Closed
wants to merge 1 commit into from

Conversation

Kmaschta
Copy link
Contributor

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:

image

@@ -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"
Copy link
Collaborator

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

Copy link
Member

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

Copy link
Contributor Author

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.

@Kmaschta Kmaschta force-pushed the warn-for-outdated-mui branch from bf2c459 to aa25b66 Compare August 28, 2018 11:06
@Kmaschta
Copy link
Contributor Author

Kmaschta commented Aug 28, 2018

Review applied

@fzaninotto
Copy link
Member

fzaninotto commented Aug 28, 2018

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.

@Kmaschta
Copy link
Contributor Author

Kmaschta commented Sep 5, 2018

Nvm, I opened an issue on MUI about this. mui/material-ui#12781

@Kmaschta Kmaschta closed this Sep 5, 2018
@Kmaschta Kmaschta deleted the warn-for-outdated-mui branch September 5, 2018 07:07
@oliviertassinari
Copy link
Contributor

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.

Done mui/material-ui#15422

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.

4 participants