styled-components Hydration failed with react-compiler #75410
Unanswered
egorBezmen
asked this question in
Help
Replies: 4 comments 4 replies
-
I resolved the issue it was occurring due to missing next.config.js file which is need by the CSS-In-JS |
Beta Was this translation helpful? Give feedback.
3 replies
-
@egorBezmen Does this issue work fine without toggling on the React Compiler? |
Beta Was this translation helpful? Give feedback.
1 reply
-
I experienced it too |
Beta Was this translation helpful? Give feedback.
0 replies
-
Hi, any updates here? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Link to the code that reproduces this issue
https://github.com/egorBezmen/next15-styled-components
To Reproduce
Current vs. Expected behavior
the error occurs during local development if you enable react-compiler
Unhandled Runtime Error
Hydration failed because the server rendered HTML didn't match the client. As a result this tree will be regenerated on the client. This can happen if a SSR-ed Client Component used
Provide environment information
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 24.2.0: Fri Dec 6 19:01:59 PST 2024; root:xnu-11215.61.5~2/RELEASE_ARM64_T6000 Available memory (MB): 16384 Available CPU cores: 8 Binaries: Node: 20.12.0 npm: 10.5.0 Yarn: N/A pnpm: 9.15.3 Relevant Packages: next: 15.2.0-canary.27 // Latest available version is detected (15.2.0-canary.27). eslint-config-next: N/A react: 18.3.1 react-dom: 18.3.1 typescript: 5.7.3 Next.js Config: output: N/A
Which area(s) are affected? (Select all that apply)
Runtime
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
https://github.com/vercel/next.js/tree/canary/examples/with-styled-components
I deployed the template project and enabled the option react-compiler
codesandbox - https://codesandbox.io/p/github/egorBezmen/next15-styled-components/main?import=true
Beta Was this translation helpful? Give feedback.
All reactions