You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Open the repro link (it contains simplest app with one child component containing one DOM node)
You will see a warning banner "Hydration completed but contains mismatches." and message in browser console:
VM5971 about:srcdoc:160 [Vue warn]: Hydration node mismatch:
- Client vnode: h1
- Server rendered DOM: <!---->
at <InnerComponent>
at <Repl>
What is expected?
The fact that hydration will occur without errors.
Either there should be no comments in the SSR rendering output, or when hydrating on the client comments should be expected in the places indicated by the warning.
@zhangzhonghe I also found it. the currentRenderingInstance got undefined when I debugged and the code jump into the runtime-dom module in the SFC playground. It's weird.
Please provide a fresh local repro if you can reproduce this problem.
Vue version
v3.2.41
Link to minimal reproduction
https://sfc.vuejs.org/#__DEV____SSR__eNqlUsFuwjAM/ZUol4JEE7HtVEWIaaf9Qy4dNaMbcSMnZZNQ/31uaBkUaRLaJZHtZz8/20f57L06tCALaSI4vy8jrCzaaF4RgV4a5xsEjCujJw6LRl9moAkbqn0fqBlDURxFBdsa4ZwjOrGlxomMCbMz7LrugFATur5HTrEI3ymJK5ftPv2XDLOjRSGwdFCIjKVli97ejOFQiAQQE9KE6tIbILZ+Nh9xxCbhaHUJZ7Gb9+oHvXIhT0pyV3r1ERrkYaYEOwSClWdiK1lJb1u5i9GHQusW/ee74ib1mmOaWoy1g7xq3PpRPainpa7qEC/9CoLL36j5CkDMaGVqfSiu2XkAygmwAgL6k2yCvSKcxG5Ix2HwAG6XNTkoIcxuuUqw33UYzb7/39FdR3Hd6ek+7t+5Rdn9AL2UI2A=
Steps to reproduce
What is expected?
The fact that hydration will occur without errors.
Either there should be no comments in the SSR rendering output, or when hydrating on the client comments should be expected in the places indicated by the warning.
What is actually happening?
I see hydration warning in console.
System Info
Any additional comments?
The problem does not reproduce if you use
<script setup>
(see example).The text was updated successfully, but these errors were encountered: