Closed moriahmaney closed 3 days ago
https://github.com/moriahmaney/styled-components-bug-next
yarn dev
I expected there to be no className mismatch when using a ThemeProvider with a StyledComponentsRegistry when following the instructions in the documents here: https://nextjs.org/docs/app/building-your-application/styling/css-in-js#styled-components
Operating System: Platform: darwin Arch: arm64 Version: Darwin Kernel Version 23.4.0: Fri Mar 15 00:12:49 PDT 2024; root:xnu-10063.101.17~1/RELEASE_ARM64_T6020 Available memory (MB): 32768 Available CPU cores: 12 Binaries: Node: 18.18.0 npm: 9.8.1 Yarn: 1.22.22 pnpm: 8.8.0 Relevant Packages: next: 14.2.4 // Latest available version is detected (14.2.4). eslint-config-next: 14.2.4 react: 18.3.1 react-dom: 18.3.1 typescript: 5.5.2 Next.js Config: output: N/A
Not sure
next dev (local)
No response
Link to the code that reproduces this issue
https://github.com/moriahmaney/styled-components-bug-next
To Reproduce
yarn dev
Current vs. Expected behavior
I expected there to be no className mismatch when using a ThemeProvider with a StyledComponentsRegistry when following the instructions in the documents here: https://nextjs.org/docs/app/building-your-application/styling/css-in-js#styled-components
Provide environment information
Which area(s) are affected? (Select all that apply)
Not sure
Which stage(s) are affected? (Select all that apply)
next dev (local)
Additional context
No response