-
-
Notifications
You must be signed in to change notification settings - Fork 1.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
Add support for @mui/material@6
on every X component
#14055
Comments
Hello @MikeLautensack mui-x/packages/x-charts/package.json Line 54 in 630acb5
Feel free to try using the latest Do you have any more questions? 🤔 |
I tried with and without the @next flag and got the same result. I need to use the mui v6 packages because of the SSR flicker fix for next.js app router. Will v6 be compatible with the mui-x packages when v6 is out of beta? |
In mui/material-ui#30660 it was said that v7 will support Material UI v6 once it is released? When can we expect MUI X v8 to be released so we can migrate? |
Yes, that makes sense. None of the v7 versions support the
Do you mean this guide?
There is no such plan. We only plan to support it in the next major of |
Are you referring to this comment: mui/material-ui#30660 (comment)? 🤔 |
Thats a pages router example. I am using the app router and the only available for the app router is in the pre release v6 versions. I spent a whole weekend trying to figure it out with the app router specifically but could only do it with v6. |
Yes, I was referring to that comment. If it won't be supported until v8, when can we expect that release? The entire point of splitting op MUI v6 in v6 and v7 was to not have to do a painful migration, but this feels like we'll have to do it anyways if v8 is coming only near the end of the year. |
Hi @MikeLautensack "overrides": {
"@mui/x-data-grid": {
"@mui/material": "$@mui/material"
}
} With this change, |
@Studio384 I have confirmed with the team that the plan is to aim at supporting Otherwise, the v8 stable of |
Is there an issue or PR where we can follow to know whether or not it's going to be an issue? Otherwise, MUI X v8 is then set to release after MUI v7, I assume MUI v7 will be supported by MUI X v8? This really feels like it should have been synchronized much better... It's disappointing that a first party package doesn't support the latest version of the 1 package it is supposed to be used with. |
There is no separate issue for this yet. |
Yes I agree. One thing that might be of note is that since I updated to v6.0.0-beta.4 the backgroundColor property in the sx prop on the Box component is not working any longer when I was working before in the earlier v6 versions. |
Can you share a reproducible sandbox? I have take a look on it. |
It seems to be working: https://stackblitz.com/edit/react-vbhvn1?file=Demo.tsx |
Sorry, I was wrong it is working however what I though was the backgroundColor prop not working is some other bug related to theming. In my next.js app I have a paper comp in my root layout that has a bg-color of "surface" and I have a header and sidebar with bg-color "surfaceContainer". In light mode the colors are applied correctly but in dark mode the header and sidebar are painted with the "surface" color. I have verified that the styles in chrome dev tools match my theme.ts so I am very confused. |
Thank you! I just got the time to try this and it worked! Much appreciated! |
It makes sense to apply this fix when you're staying on SSR. Using @mui/x charts or datepickers without pigment-css on the contrary makes zero sense since you would still need emotion SSRed which will most likely opt you out of static rendering in NextJS. At the very least you would bring emotion to the client increasing bundle size while negating all the benefits from pigment. Can't wait to see how drastically my bundle size would reduce thanks to pigment-css and static rendering though |
@mui/material@6
on every X component
Can you share what's blocking you in v5? |
@MikeLautensack: How did we do? Your experience with our support team matters to us. If you have a moment, please share your thoughts in this short Support Satisfaction survey. |
Steps to reproduce
Link to live example: (required)
Steps:
1.
2.
3.
Current behavior
Expected behavior
clean install
Context
No response
Your environment
npx @mui/envinfo
Search keywords: packages not compatible
Search keywords:
The text was updated successfully, but these errors were encountered: