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
When two Link components are nested within each other, it reports "Hydration completed but contains mismatches."
This error only occurs in the production environment.
Link.vue:
<template>
<a>
<slot />
</a>
</template>
index.md
<Link><Link>Hydration completed but contains mismatches.</Link></Link>
Regarding better errors, it is there while developing:
(Edit: sorry these are not there when you've invalid HTML across components, you'll need to enable DEBUG mode to see those in browser console in prod build).
If you want errors on prod build, you can run DEBUG=true vitepress build which will enable __VUE_PROD_HYDRATION_MISMATCH_DETAILS__ flag.
Describe the bug
When two Link components are nested within each other, it reports "Hydration completed but contains mismatches."
This error only occurs in the production environment.
Link.vue:
index.md
Reproduction
https://stackblitz.com/edit/vite-4nxfvzn6?file=docs%2Findex.md
Expected behavior
I'm not sure why this happens, but it's quite hard to troubleshoot. It would be better if more explicit error messages could be provided.
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: