react-admin icon indicating copy to clipboard operation
react-admin copied to clipboard

Material UI v6 support

Open olesmarola opened this issue 2 years ago • 12 comments

What you were expecting: Material UI v6 package installed successfully

What happened instead: error when try to install

Steps to reproduce:

npm i --save-dev @mui/[email protected]

Other information:

Environment

  • React-admin version: 5.1.2
  • Last version that did not exhibit the issue (if applicable): -
  • React version: 18.3.1
  • Browser: -
  • Stack trace (in case of a JS error): -

olesmarola avatar Aug 27 '24 18:08 olesmarola

Material-ui V6 is a major version and has some breaking changes with material-ui v5. Unless we can support both versions, supporting material-ui v6 will require a major version bump for react-admin, which isn't planned before at least a year (we've just released react-admin v5). Besides, the MUI team plans on releasing v7 before the end of this year. This means we'll probably skip this release and wait for v7.

fzaninotto avatar Aug 27 '24 19:08 fzaninotto

@fzaninotto Got you! Thanks for the info.

olesmarola avatar Aug 28 '24 07:08 olesmarola

It might be possible to support Material UI v5 and v6 at the same time, MUI X pulled it off. Same here: https://github.com/KevinVandy/material-react-table/issues/1231#issuecomment-2322983508

oliviertassinari avatar Sep 01 '24 00:09 oliviertassinari

Material React Table is going to be shipping as a new V3, just so that other minor breaking changes can be made, but it probably could have been kept on V2.

KevinVandy avatar Sep 01 '24 03:09 KevinVandy

Isn't it requiring at least v6? https://github.com/KevinVandy/material-react-table/blob/v3/packages/material-react-table/package.json#L110-L111

djhi avatar Sep 02 '24 07:09 djhi

Isn't it requiring at least v6? https://github.com/KevinVandy/material-react-table/blob/v3/packages/material-react-table/package.json#L110-L111

Yep

KevinVandy avatar Sep 02 '24 13:09 KevinVandy

MUI v7 is surely not gonna happen before the end of this year and not even close based on their roadmap. Please move forward to MUI v6. It makes adopting MUI v7 easier in the end.

rinarakaki avatar Dec 10 '24 08:12 rinarakaki

MUI V6 support was added in https://github.com/marmelab/react-admin/pull/10439, released in react-admin v5.5.

fzaninotto avatar Jan 20 '25 12:01 fzaninotto

Is there any plan to support MUI V7? It now provides support for tailwind, could be interesting to see how it would work with React Admin

cristisp avatar Apr 02 '25 14:04 cristisp

Yes, we'll look into it

djhi avatar Apr 02 '25 14:04 djhi

Awesome! Could you create a new issue/PR to keep track of progress/conclusions on this?

cristisp avatar Apr 02 '25 14:04 cristisp

Just tested it, it looks good: #10639

djhi avatar Apr 02 '25 14:04 djhi