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

Hydration Error in Google Chrome but not in Microsoft Edge (Error Resolved After Refresh) #98

Open
LEIYOUSU opened this issue Oct 11, 2024 · 0 comments

Comments

@LEIYOUSU
Copy link

I encountered a hydration error when using Google Chrome to view the project, but the error does not appear in Microsoft Edge. The error message indicates a mismatch between the initial UI rendered on the server and the UI hydrated on the client.In Google Chrome, after refreshing the page once, the error disappears, and the application works normally. This behavior is consistent: the initial load in Chrome throws the error, but after a refresh, the app functions correctly without further issues.
The full error message is:
Unhandled Runtime Error
Error: Hydration failed because the initial UI does not match what was rendered on the server.
See more info here: https://nextjs.org/docs/messages/react-hydration-error
Possible Cause:
This issue could be related to browser-specific differences in how hydration is handled or discrepancies between the server-rendered and client-rendered content. It may involve dynamic content or conditional rendering that behaves differently across browsers.
屏幕截图 2024-10-11 112125

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant