Skip to content
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

Pages not rendering full content #17

Closed
davestewart opened this issue Sep 8, 2024 · 2 comments · Fixed by #24 or #26
Closed

Pages not rendering full content #17

davestewart opened this issue Sep 8, 2024 · 2 comments · Fixed by #24 or #26
Labels
bug Something isn't working

Comments

@davestewart
Copy link
Contributor

Bug description

It seems that some pages are not rendering the full content, in that only one section (usually the last section on the page) will render, missing out all the content before it.

Reproduction steps

It seems to occur with pages that contain HTML, the buggy-properties of which, I can't exactly nail down.

It is also reproducible in StackBlitz, so I will file a bug with VitePress.

However, it also seems to be intermittent; I have seen it on the final production pages of the docs one day, then other times not.

Strangely, adding any HTML comment to the page tricks VitePress into rendering the page properly, so I will probably add HTML comments to all pages just to make sure that we're not caught out by the intermittent issue.

@davestewart
Copy link
Contributor Author

davestewart commented Sep 8, 2024

VitePress is still not rendering some pages properly:

The error is:

Hydration completed but contains mismatches.

All of these pages have HTML examples.

In the case of previous pages not working (i.e. modal) the solution was to make the markup Vue-compatible, for example, adding Vue event handlers like @click rather than HTML handlers like onclick.

Shall investigate these individual pages and attempt to find a solution.

Related issues on VitePress here:

@davestewart
Copy link
Contributor Author

Have raised a bug here:

And pushing a PR that wraps these final awkward examples in <ClientOnly>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
1 participant