vitepress
vitepress copied to clipboard
testing environment refresh page error. example: framework.gVONBIN7.js:13 Hydration completed but contains mismatches.
Describe the bug
Reproduction
测试环境刷新页面即可复现,本地运行正常
Expected behavior
find the reason and fix it
System Info
window chrome virepress v1.3.2 node.js v16.18.0
Additional context
No response
Validations
- [X] Check if you're on the latest VitePress version.
- [X] Follow our Code of Conduct
- [X] Read the docs.
- [X] Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
Cannot find the reason without looking at your code. Please provide a minimal reproducible example. Some component of yours might not be SSR compatible. You will need to either make it SSR compatible or wrap it with <ClientOnly>. https://vitepress.dev/guide/ssr-compat
You can get more helpful warnings by specifying export DEBUG=true (set DEBUG=true in Windows cmd) and then building your vitepress app and previewing it.
You can get more helpful warnings by specifying
export DEBUG=true(set DEBUG=truein Windows cmd) and then building your vitepress app and previewing it.
Only one global component .I can't find reson.
You can get more helpful warnings
I meant in browser console. Not your terminal.
Is your repo public?
Only one global component
Does it work if you remove it? (both from theme and markdown)?
You can get more helpful warnings
I meant in browser console. Not your terminal.
Is your repo public?
Only one global component
Does it work if you remove it? (both from theme and markdown)?
Not about the component. This is a simple demo.
You can get more helpful warnings
I meant in browser console. Not your terminal.
Is your repo public?
Only one global component
Does it work if you remove it? (both from theme and markdown)?
I have discovered the reason. Remove "cleanUrls".