-
Notifications
You must be signed in to change notification settings - Fork 28.3k
Warning: Prop className
did not match. Server:
#51360
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
Comments
This bug seems to be only present in the Next project with the App router. |
I made some tests on my project. If the styled component is defined in the file where is used by the react component the error occurs. If not, the error disappear |
In my tests everything works fine if the styled component is part of the current project. |
I have also this problem, please, can you help us? |
I'm having the same problem. |
I'm having the same problem. No solution found |
This issue has been automatically marked as stale due to two years of inactivity. It will be closed in 7 days unless there’s further input. If you believe this issue is still relevant, please leave a comment or provide updated details. Thank you. |
Verify canary release
Provide environment information
Which area(s) of Next.js are affected? (leave empty if unsure)
No response
Link to the code that reproduces this issue or a replay of the bug
https://github.com/4nur4g/nextapppnpm
To Reproduce
Just run the development server by, I'm running it using:
pnpm run dev
, the issue remains even if I use the--turbo
flag.For reproducing from scratch:
√ What is your project named? ... nextapppnpm
√ Would you like to use TypeScript with this project? ... No / Yes
√ Would you like to use ESLint with this project? ... No / Yes
√ Would you like to use Tailwind CSS with this project? ... No / Yes
√ Would you like to use
src/
directory with this project? ... No / Yes√ Use App Router (recommended)? ... No / Yes
√ Would you like to customize the default import alias? ... No / Yes
Keep on entering for every prompt, i.e. default values.
Check the log window. You'll find the warning.
Describe the Bug
When I start the development server, it logs the warning, even when I don't change the app created by create next app.
Expected Behavior
There should be no such warning, especially when the app wasn't touched after it was created using create next app.
Which browser are you using? (if relevant)
Microsoft Edge
How are you deploying your application? (if relevant)
No response
The text was updated successfully, but these errors were encountered: