-
-
Notifications
You must be signed in to change notification settings - Fork 32.4k
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-pigment-css] Grid throws an error when it is RSC #43635
Comments
had this issue, |
You are onto something. Thank you for replying. Doing the following swap out in
|
The root cause is the I think the hotfix is to check for container check first and then apply the |
This issue has been closed. If you have a similar problem but not exactly the same, please open a new issue. Note We value your feedback @kevinpfox! How was your experience with our support team? |
Steps to reproduce
Link to live example:
https://stackblitz.com/github/mui/material-ui/tree/master/examples/material-ui-pigment-css-nextjs-ts?file=README.md
This is the same StackBlitz example provided here: https://github.com/mui/material-ui/tree/master/examples/material-ui-pigment-css-nextjs-ts
Steps:
at stringify ()
at stringify ()
at stringify ()
at stringify ()
Current behavior
⨯ Error: Cannot access default.muiName on the server. You cannot dot into a client module from a server component. You can only pass the imported name through.
at stringify ()
at stringify ()
at stringify ()
at stringify ()
Expected behavior
Render the page
Context
I've tried this on a mac, local environment and get the same result.
I added "use client" to top of
/src/app/page.tsx
to force it to render the page. I assume this should not be necessary.Your environment
npx @mui/envinfo
Out of the box
Hack to make page work
Search keywords: Demo - Material UI Pigment CSS Next.js App Router example in TypeScript
The text was updated successfully, but these errors were encountered: