-
-
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] Hydration failed because the initial UI does not match what was rendered on the server #34893
Comments
Thanks for pointing this out, I will check to see what updates we'll need to do. |
Next.js document an example with styled-components for client-side components, since we have a working adapter for styled-components, it could be a temporary workaround https://beta.nextjs.org/docs/styling/css-in-js#styled-components but they mention nothing for server side. |
I think I solved this in my project by removing the MUI Link component from inside the Next.js Link component. If I recall, I used |
This happens for me when I try to use version 13.0.3 of Next JS , using 13.0.0 it works fine. |
Same. I'm seeing this as well @mnajdova this may need reopened. |
Do you have a reproduction? |
I have same issue, nothing special, I used nextjs for a years, and now updated from 12 to 13, and see this error on first render |
There were updates in our example, it was around the Link component (and additional font updates too). The Link update is necessary for fixing the hydration errors, so I would recommend looking at that. This is the PR that fixed this issue: #34970 |
Seeing this with the following error: Warning: Prop I am using a custom theme |
@AChangXD please open an issue with a reproduction. |
Why release a half ass product? Remove next 13 from production until it is FULLY ready. Way too many errors. |
Same issues here, unfortunately the log does not provide specific details about the location of the error. |
Having the same issue here. |
getting this error but only in a input type="password" if i take it off then it works fine. But it's a password field so... not ideal |
I'm cleaning the issues. |
Duplicate of #34896 |
I upgraded to NextJS 13.5.4 and React 18.2.0, it shows the same error as you guys. But this combination works fine. Actually, I found that new NextJS 13.5 is not compatible with some MUI component. In my case, it is probably Drawler. If I set the vairant as "permanent", it shows a Hydration failed error. |
it worked for me |
Having the same issue here. |
same problem here |
|
Duplicates
Latest version
Steps to reproduce 🕹
Open https://stackblitz.com/github/mui/material-ui/tree/master/examples/nextjs, which will install the latest MUI and Next.js (v13)
Current behavior 😯
Expected behavior 🤔
No error during development.
Context 🔦
Next.js 13 is just released. Check their blog: https://nextjs.org/blog/next-13
Your environment 🌎
N/A
The text was updated successfully, but these errors were encountered: