Hydration issue when updating to react 18 #2171
-
I tried upgrading my NextJS project to react 18. However, all my MDX pages now error with Hydration issues. Before on react 17, I had a console error that I ignored: Log
On updating to react 18 I now get more errors with hydration:
My config has this:
If I remove any components with emotion inside the |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Why not ask the emotion folks? If it only occurs with their components, it seems a problem there? |
Beta Was this translation helpful? Give feedback.
-
This is not a bug in mdx.
used together, and working. What you are seeing is likely:
|
Beta Was this translation helpful? Give feedback.
This is not a bug in mdx.
Here is an example of:
used together, and working.
https://codesandbox.io/s/next-and-mdx-with-emotion-c9rtby?file=/next.config.mjs
What you are seeing is likely: