Replies: 3 comments 1 reply
-
To help clarify the error message: the error lists the first element where the framework notices that there's a hydration error, i.e., when it's expecting an element and gets a text node, or some other mismatch. If it's listing the first I don't see anything obviously wrong when I test out this snippet as a regular HTML file, no. |
Beta Was this translation helpful? Give feedback.
-
Removing the anchor tag makes the error go away, would that imply that it is the cause of the problem? |
Beta Was this translation helpful? Give feedback.
-
A confounding aspect of the hydration errors is that they do not occur every time, so as I try adding and removing different elements, sometimes the error occurs and sometimes it doesn't, so I'm having a very difficult time debugging this. |
Beta Was this translation helpful? Give feedback.
-
This fails with a hydration error on the top
div
element:If I remove the anchor tag then the error goes away. But can't anchor tags have flow content in HTML 5? Is this a bug in the hydration, or am I doing something wrong?
Beta Was this translation helpful? Give feedback.
All reactions