-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Fix Prop nonce did not match error #223
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
Prop
nonce did not match.
errorProp
nonce did not match.
` error
Prop
nonce did not match.
` error
UP facing the same issue ! |
Got this issue |
Fixed in #262 |
Also facing after upgrade to 0.3.0 |
@pacocoursey I think you missed to include this change in 0.3 release https://www.unpkg.com/next-themes@0.3.0/dist/index.js |
No, it was merged after. #262 hasn't been released yet, but the issue is fixed in the source code. |
@pacocoursey could you do a release with it pretty please? |
I am getting
Warning: Prop `nonce` did not match. Server: "" Client: "rj3157e91u"
despite passing in a nonce.When trying to search for why this error is happening I found this: https://github.com/kentcdodds/nonce-hydration-issues
TLDR: Apparently the browser, for security reasons, clears the nonce the way that next-themes is creating script tag. This leads to a mismatch, causing the warning.
I believe this fixes: #218
I have created a build with this fix for testing and it seems to work:
"@enalmada/next-themes": "^0.2.3",