-
-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Direct link to page showing duplicated sections in the content #201
Comments
Oh yeah... hmmm... we must look into this. We're getting |
I'm not sure if it's the exact same problem, but I get weird issues using |
You can see this behavior in the Vitepress docs as well: https://vitepress.vuejs.org/guide/markdown.html#table-of-contents When that page is loaded directly you get the "hydration mismatch" error (and the TOC is missing), but loading another page and navigating to the markdown section works fine. |
I have this problem as well. All pages that contain JavaScript show "Hydration completed but contains mismatches." when loaded directly. For example: https://gbv.github.io/jskos-vue/dev/components/ItemDetails.html Interestingly, it works when navigating to the page from another site, but not if I simply go back and forth. Only the page that got initially loaded stays broken. Even more interestingly: The JavaScript part of the page loads, but not the Markdown! Something is very weird here. Edit: While there's definitely something weird going on here, I was able to fix my issue by putting some code into the onMounted hook. It seems like one of our dependencies is not exported correctly or something and it throws an error during the build. For some reason, it still works if you navigate there from another page, but doesn't if you load the page directly. This whole issue seems to be related to dependencies in some form. |
@patak-js Any idea what causes this? Having the same issue of duplicated sections and component lost. |
|
Building with mpa mode (e.g. |
In my case, mpa mode not working |
|
Can anyone try to reproduce this issue with the latest |
Starting from https://vitepress.vuejs.org, you can navigate to the
Markdown Extensions
section and it properly works:But reloading the page, or directly visiting https://vitepress.vuejs.org/guide/markdown.html is showing duplicated content:
The text was updated successfully, but these errors were encountered: