-
-
Notifications
You must be signed in to change notification settings - Fork 120
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
1 of 2 React Hydration — Error 1 of 3 errors in Admin view: Unhandled Runtime Error: Error: Hydration failed because the initial UI does not match what was rendered on the server. #359
Comments
Hi @theGaryLarson @Komal914 @sijin-raj @GuillermoFloresV If @theGaryLarson and/or @Komal914 are looking for additional issues to solve, I reported: Thank you! |
Hi Lloyd, thanks for this. We can consolidate the issues into a single one since it's all caused by a single hydration issue. |
It depends. . 1. From the end-user perspective, it's three issues for three error messages. . 2. From the developer's perspective, it's one pull request with one fix for three issues. The consolidation could be done by the developer when fixing the issue. Whereas the consolidation would not be done by the end-user who reported the issue. . 3. There could be a triage team between the end-user and developer who consolidate the issue, but is there a triage team? Thanks! By the way, @theGaryLarson is looking for your direction on which https://github.com/freeCodeCamp/classroom issues to work on. Can @theGaryLarson work on these React, Hydration, and Boundary issues? Thanks again! |
Related information from
If I were in your shoes, below is how I would go about it:
For example: Error messages 1 and 2: Error message 3: Error messages 1 and 2:
Google search of:
Points to
Which points to facebook/react#24519 (comment)
In error messages 1 and 2, a keyword is Hyrdation. The referenced web link in error messages 1 and 2 is: https://nextjs.org/docs/messages/react-hydration-error
Error message 3 of 3:
In error message 3, a keyword is Boundary. Hence a Google Search for boundary in React leads to: https://react.dev/reference/react/Component#catching-rendering-errors-with-an-error-boundary
https://nextjs.org/docs/pages/building-your-application/configuring/error-handling
|
How to get to the admin view @lloydchang @GuillermoFloresV please guys ? I don't seem to find it |
@Ismailtlem Hey! You need to update your role as admin inside Prisma Studio. Prisma Studio is on port 5555 locally |
To add to Komal's comment, you have to have Prisma studio running on it's own terminal. The command is |
#398 |
This error no longer happens after #401 |
Please contact @GuillermoFloresV if you have further questions about this. Thanks! |
Describe the bug
1 of 2 React Hydration — Error 1 of 3 errors in Admin view: Unhandled Runtime Error: Error: Hydration failed because the initial UI does not match what was rendered on the server.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Error message without the stack trace.
Screenshots
1 of 2 React Hydration — Error 1 of 3 errors in Admin view: Unhandled Runtime Error: Error: Hydration failed because the initial UI does not match what was rendered on the server.
Desktop (please complete the following information):
Additional context
Relates to
#134
#360
#361
The text was updated successfully, but these errors were encountered: