material-table icon indicating copy to clipboard operation
material-table copied to clipboard

Support MUI 5

Open SaeedBoroo opened this issue 5 years ago • 13 comments

MUI 5

I have an error. when I update MUI to version 5. Material-Table needs @Material-ui/icons but in MUI 5 we haven't this. [mui5 ---> @mui/icons] please update...

SaeedBoroo avatar Sep 22 '21 10:09 SaeedBoroo

welcome to the dependencies hell :) material-table depends on material-ui and also heavily relies on @material-ui/pickers that also depends on material-ui. (v4). So, for a while, if you absolutely need material-table, just stick to material-ui and let @mui aside...

gabizz avatar Sep 22 '21 18:09 gabizz

will there be an update for mui 5?

perosa100 avatar Sep 22 '21 19:09 perosa100

will there be an update for mui 5?

This is Mehmet's decision. We should ask him :)

gabizz avatar Sep 22 '21 20:09 gabizz

Just as a word of warning, we switched to MUI 5, and there is something with the way that MUI and Material Table handle CSS that causes much of the MUI CSS to be overridden by what has been done in Material Table. I'm not sure what the solution is, but (and certainly if you are using react router) this causes the application to behave very strangely.

What is looks like normally: image

What it looks like once I load a page with a Material Table: image

AlexThurston avatar Sep 23 '21 01:09 AlexThurston

If you look in yarn, MT has not been updated for a while (22 weeks), so, personally I will test this:

https://mui.com/components/data-grid/getting-started/

after that I'll decide if it is worth the migration.

Jucabelve avatar Sep 25 '21 00:09 Jucabelve

I went through migration steps as outlined here: and wasn't able to get it working. I had issue with the material-ui icons library as well. There was a certain point where I was at least able to get it to compile, but even then, I had similar CSS issues that @AlexThurston mentioned above.

I'm just going to leave the migration unfinished on a separate branch on my project, and come back to it if material table ever gets updated. Once tree data gets added to mui/x-data-grid (whenever that may be), I may pull the trigger on MUI pro if MT isn't updated by then.

cc-greglorenzen avatar Oct 01 '21 16:10 cc-greglorenzen

I ended up biting the bullet and just spending the afternoon required to convert all our material-table usage to data-grid and implementing what needed to be implemented to have the same behaviour.

It ended up not being all that difficult.

AlexThurston avatar Oct 01 '21 16:10 AlexThurston

I ended up biting the bullet and just spending the afternoon required to convert all our material-table usage to data-grid and implementing what needed to be implemented to have the same behaviour.

It ended up not being all that difficult.

Are you using the pro version of data grid?

cc-greglorenzen avatar Oct 01 '21 17:10 cc-greglorenzen

Nope.

On Fri, Oct 1, 2021 at 1:37 PM cc-greglorenzen @.***> wrote:

I ended up biting the bullet and just spending the afternoon required to convert all our material-table usage to data-grid and implementing what needed to be implemented to have the same behaviour.

It ended up not being all that difficult.

Are you using the pro version of data grid?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/mbrn/material-table/issues/3023#issuecomment-932428233, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA27TUG37MMXPU2H6X3FXRTUEXWW5ANCNFSM5ERAIOSA . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

AlexThurston avatar Oct 01 '21 19:10 AlexThurston

I ended up biting the bullet and just spending the afternoon required to convert all our material-table usage to data-grid and implementing what needed to be implemented to have the same behaviour.

It ended up not being all that difficult.

I did the same, I find it the best way to go with.

Jucabelve avatar Oct 01 '21 19:10 Jucabelve

So I guess the answer is, it cannot work with v5? And I need to drop this package right? @Jucabel

hutber avatar Oct 17 '21 18:10 hutber

---- use this package ---- MUI-DATATABLE

SaeedBoroo avatar Oct 25 '21 15:10 SaeedBoroo

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

stale[bot] avatar Jan 23 '22 17:01 stale[bot]