-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Hydration error using Next.js 15 and MUI 6 when using Turbopack builder #3308
Comments
I have the same issue when running with
|
Greetings! I have the same problem, but with a slightly different configuration (NextJS 15 / Chakra UI 3)...what I have not done - nothing helps, but without |
I was seeing this error too, and solved it. First, error reproduction steps (skip several by cloning this at the linked-to point in history):
Or you can skip all that and just clone this at the linked-to point in the commit history. I found this issue from last summer in which Per this older Reddit post, following the MUI instructions for Next.js integration did much better. Namely, stop the server, |
Current behavior:
Using Next.js 15 and MUI 6, an Emotion-related hydration error appears when the page is SSR-rendered. After reading chakra-ui/chakra-ui#8970, I figured out, this only happens using the new
--turbopack
builder from Next.js (which has been the new default for some time)To reproduce:
npm install
and thennpx next dev --turbopack
localhost:3000
)Expected behavior:
I expect no error to be thrown.
Environment information:
@emotion/babel-plugin
: 11.13.5@emotion/cache
: 11.14.0@emotion/hash
: 0.9.2@emotion/is-prop-valid
: 1.3.1@emotion/memoize
: 0.9.0@emotion/react
: 11.14.0@emotion/serialize
: 1.3.3@emotion/sheet
: 1.4.0@emotion/styled
: 11.14.0@emotion/unitless
: 0.10.0@emotion/use-insertion-effect-with-fallbacks
: 1.2.0@emotion/utils
: 1.4.2@emotion/weak-memoize
: 0.4.0react
: 19.0.0react-dom
: 19.0.0react-is
: 16.13.1react-transition-group
: 4.4.5(Taken from the linked reproducible repo's package-lock.json)
Potentially related issues:
The text was updated successfully, but these errors were encountered: