-
-
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
Material UI 4.12.1 warnings #6451
Comments
Hi, and thanks for the report. These are deprecation warnings that can be ignored as long as you don't use the next major version of material-ui, which is still in beta and has many, many breaking changes. So we're not in a hurry to fix them. We'll probably do that in the next major version of react-admin (v4, not yet started). The second issue was already reported in #6421 |
@fzaninotto Excuse my ignorance I've done a bit of googling and still found no answer. How are we able to ignore the deprecation warnings? |
@fzaninotto would you consider accepting PRs fixing the deprecation warnings? |
Note that this warning only occurs in development. The warning tells that that this feature will be removed in MUI 5.0. Version 5.0 has many breaking changes and is only in beta, and we don't intend to support before react-admin 4.x. In other words, we don't intend to care about MUI 5.x in react-admin 3.x If they put a deprecation warning for all breaking changes in 4.x, it'll be hell to fix on our side. As the peerDependency on material-ui is "^4.11.2", fixing this warning this implies that we bump the minimal mui version in our next minor (3.18) |
The funny think is that there is no documentation for version 4.12... |
I understand, but that's where we do all our work and when we are looking at the console. They are piling up quickly and are very annoying to search through. Do you have any suggestions for ignoring these?
So are you saying that this will be fixed in 3.18.2? EDIT: I see you already have the fix committed. Thanks for all the hard work @fzaninotto! |
I hope this problem can be fixed as soon as possible, this annoying warning always makes it difficult for me to debug the program. If the Material-UI doesn't provide a good way to control it, I think react-admin should be able to control the version that uses dependencies, rather than having this problem exposed to the user. |
If you don't want the warnings, downgrade the material-ui version you're using, or ask them to allow a global setting to turn the warnings off. As for react-admin, the next version (3.19) will have these warnings cleared. Release schedules for early October. |
@fzaninotto Can you give instructions on how to downgrade the material-ui for those of us that only take on the dependency of react-admin? You've mentioned this several times but people (ie: @cprater in this thread) have asked how to do so with no answer.
|
@davidhenley To force a sub-dependency, you have 2 ways:
"dependencies": {
"react": "^17.0.2",
"react-admin": "^3.18.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3",
+ "@material-ui/core": "^4.11.2"
},
"dependencies": {
"react": "^17.0.2",
"react-admin": "^3.18.2",
"react-dom": "^17.0.2",
"react-scripts": "4.0.3"
},
+"resolutions": {
+ "@material-ui/core": "4.11.2"
+}, |
@fzaninotto I added the first way, deleted
|
@davidhenley AFAIK you need to stay on 4.11.x to get rid of the warnings right now. As the caret ^ is allowing 4.12.x as well here, smth like |
@herndlm hmm...that didn't seem to work. still getting the same deprecation warnings everywhere:
|
I use I know it's an annoying question, but it's the only thing I can do. Recently I saw that Material-UI 5.0 has been released. I hope react-admin will follow suit soon. Thanks to the community developers for their efforts. |
Since react-admin 3.18 was published and removes these warnings, our fix for this problem is simply to upgrade to the latest react-admin version. You can avoid it if you know how to fork yarn/npm dependencies, but in that case it's your responsibility to do it. |
@fzaninotto Do you mean 3.19? You said earlier that 3.19 will fix these and it is not published yet. The warnings are still there in 3.18.2 |
@whg517 I did wipe node_modules and reinstalled as stated earlier. They are still there. Hopefully 3.19 will come out soon. |
My bad, these warnings will go away in 3.19. |
Oh my god the deprecation warnings are gone with 3.19! My happiness has just gone through the roof! Thanks everyone!! |
What you were expecting:
No warnings
What happened instead:
Receive the following warnings after upgrading to MUI 4.12.1
onExited
ofForwardRef(Snackbar)
is deprecated. Use theTransitionProps
prop instead.onChangePage
ofForwardRef(TablePagination)
is deprecated. Use theonPageChange
prop instead. -AND- Warning: Failed prop type: The proponChangeRowsPerPage
ofForwardRef(TablePagination)
is deprecated. Use theonRowsPerPageChange
prop instead.The text was updated successfully, but these errors were encountered: