-
-
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
Next.js 13 Error during SSR Rendering ReferenceError: defaultStyleFunctionMapping is not defined #34910
Comments
@altechzilla can you please share a reproduction repository where we can see the issue? Looks like this import cannot be resolved for some reason - https://github.com/mui/material-ui/blob/master/packages/mui-system/src/styleFunctionSx/styleFunctionSx.js#L2 |
Hey @mnajdova, I created a repo this morning where I configured a new NextJS 13 repo with TypeScript + Turbo Pack enabled along with the latest version of MUI. By using a Here's the repo, hoping that can help with the troubleshooting phase of this issue. https://github.com/RPDeshaies/mui-34910-nextjs/tree/49816963c992eb0f502156d7aac204e85b421423 I had looked a bit at the MUI code and I found the file you mentioned above, though I find it weird that this import would trigger any sort of error since it seems pretty standard, apart from the symbol renaming inside the import. |
Maybe it's something related to the bundler? |
Aaah you may be right, it could be related to #31835 |
@altechzilla is this still happening to you? Same exact error happening to me today |
Also I was have same error |
Opened PR to fix issue |
@mnajdova I think you should take the label off of this for "not our responsibility" right? |
I've left a comment on the pull request. |
As of Tested using this example |
Duplicates
Latest version
Steps to reproduce 🕹
Steps:
next dev --turbo
Current behavior 😯
Expected behavior 🤔
No error.
Context 🔦
Using Next 13 + MUI + Emotion +
next dev --turbo
.More details here: vercel/turborepo#2312 (comment)
Works without --turbo.
Your environment 🌎
The text was updated successfully, but these errors were encountered: