-
Notifications
You must be signed in to change notification settings - Fork 27.7k
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
[NEXT-611] Improve hydration error messages in pages
#46226
Comments
Typically the console contains the exact node where things went wrong. Do remember that this is first and foremost a React error. There's however a question, I used to agree too but now I don't know, should this really... break onto a hydration error? #36765 The error did exist when React 17 was used under the hood, but now with the concurrent root, this kind of things breaks the hydration process. facebook/react#24519 |
Thanks for the clarification, Joseph. I think we are talking about the same thing, does it really a |
We've changed the error overlay in a bunch of ways recently: facebook/react#24519 (comment) |
pages
pages
pages
pages
pages
This closed issue has been automatically locked because it had no new activity for a month. If you are running into a similar issue, please create a new issue with the steps to reproduce. 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
https://github.com/chavda-bhavik/nextjs-error-reproduction
To Reproduce
index.tsx
file,Hydration failed because the initial UI does not match what was rendered on the server.
Describe the Bug
I am receiving the
Hydration failed because the initial UI does not match what was rendered on the server
error when attempting to troubleshoot an HTML issue in jsx. It would be helpful to have a more specific error message that indicates which HTML element the issue is in, as this would make it easier to identify what the problem is.Expected Behavior
When there is an issue in jsx regarding HTML, a message stating
issue in HTML
would be helpful to debug rather than theHydration failed because the initial UI does not match what was rendered on the server
error. In addition to where the HTML issue is.Which browser are you using? (if relevant)
No response
How are you deploying your application? (if relevant)
No response
NEXT-611
The text was updated successfully, but these errors were encountered: