You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
My project has just been updated to Mui v5 (https://mui.com/). And one of used package react-page (https://github.com/react-page/react-page) in the project uses Mui v4 (https://v4.mui.com/). And some conflicts just showed up. When I use the module importing the react-page, the style sheet of mui v4 covered the current style sheet of mui v5. How can I prevent mui v4 from covering all style sheets and make sure mui v5 is still working as before?
The text was updated successfully, but these errors were encountered:
danilo-leal
changed the title
How to solve conflict between my project using mui5 and package using mui4?
[migration] How to solve conflict between my project using v5 and third-party packages using v4?
Feb 28, 2022
I have the same question. I'm considering upgrading to MUI v5, but one of my dependencies still relies on Material-UI v4 (and likely won't be updated soon), so I won't be able to upgrade unless the two versions can run side-by-side.
Thanks, this worked for me. It also appears to match the official approach recommended for the opposite scenario (third-party v5 dependency in a v4 project): https://mui.com/components/data-grid/migration-v4/
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue.
Now, if you have additional information related to this issue or things that could help future readers, feel free to leave a comment.
My project has just been updated to Mui v5 (https://mui.com/). And one of used package react-page (https://github.com/react-page/react-page) in the project uses Mui v4 (https://v4.mui.com/). And some conflicts just showed up. When I use the module importing the react-page, the style sheet of mui v4 covered the current style sheet of mui v5. How can I prevent mui v4 from covering all style sheets and make sure mui v5 is still working as before?
The text was updated successfully, but these errors were encountered: