Skip to content
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

Enabling experimental.reactCompiler causes hydration error when using styled-jsx #65995

Open
steve-marmalade opened this issue May 20, 2024 · 0 comments
Labels
bug Issue was opened via the bug report template.

Comments

@steve-marmalade
Copy link

Link to the code that reproduces this issue

https://github.com/marmalade-labs/react-compiler-styled-jsx

To Reproduce

  1. Start the dev server bun dev
  2. Load the page http://localhost:3000/
  3. Notice the hydration mismatch error printed in the Console

Current vs. Expected behavior

Current behavior

The styled-jsx ID is successfully rendered on the server, but it is not being rendered on the client
image

Expected behavior

The styled-jsx ID should be present in both the server and client output

Provide environment information

Operating System:
  Platform: linux
  Arch: x64
  Version: #1 SMP PREEMPT_DYNAMIC Fri, 17 May 2024 16:56:38 +0000
  Available memory (MB): 31884
  Available CPU cores: 8
Binaries:
  Node: 18.20.2
  npm: 10.8.0
  Yarn: 1.22.22
  pnpm: 8.15.5
Relevant Packages:
  next: 14.3.0-canary.72 // Latest available version is detected (14.3.0-canary.72).
  eslint-config-next: 14.3.0-canary.72
  react: 19.0.0-rc-d3ce0d3ea9-20240520
  react-dom: 19.0.0-rc-d3ce0d3ea9-20240520
  typescript: 5.4.5
Next.js Config:
  output: N/A

Which area(s) are affected? (Select all that apply)

Not sure

Which stage(s) are affected? (Select all that apply)

next dev (local), next build (local), next start (local), Vercel (Deployed)

Additional context

No response

@steve-marmalade steve-marmalade added the bug Issue was opened via the bug report template. label May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issue was opened via the bug report template.
Projects
None yet
Development

No branches or pull requests

1 participant