Closed JohnCampionJr closed 1 year ago
Nope, not a bug. Bad HTML.
was being rendered inside a
which broke things. Once I changed it to a div, all was well. Leaving here in case it helps anyone else.
<p>
can contain only inline elements. Such issues are easier to find using https://validator.w3.org/#validate_by_input. Just copy-paste generated HTML there.
Describe the bug
This ones tricky. I think it may be related to #1918
On prod, getting
hydration mismatch error
on my theme https://github.com/jcamp-code/vitepress-blog-themeOn initial load, the HTML is correct (you see the post excerpt) but it flashes away in milliseconds.
Wondering if it has to do with the v-html:
This looks related: https://github.com/vuejs/core/issues/6435
But I did the workaround suggested but it made no difference. It's like
excerpt
is not getting loadedReproduction
Easily seen here: https://deploy-preview-2--vitepress-blog.netlify.app/blog/
Go to it and then reload the page and you'll see the hydration mismatch
https://github.com/jcamp-code/vitepress-blog-theme
Clone it
pnpm serve
Go to: http://localhost:4173/blog/
Loaded directly, you'll see the excerpts are missing. If you go to another page and come back it displays correctly.
Expected behavior
Correct display of page upon hydration
System Info
Additional context
No response
Validations