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

testing environment refresh page error. example: framework.gVONBIN7.js:13 Hydration completed but contains mismatches. #4167

Open
4 tasks done
thompsonjiang opened this issue Aug 29, 2024 · 5 comments
Labels
need more info Further information is requested

Comments

@thompsonjiang
Copy link

Describe the bug

image

Reproduction

测试环境刷新页面即可复现,本地运行正常
image
image

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

@thompsonjiang thompsonjiang added the bug: pending triage Maybe a bug, waiting for confirmation label Aug 29, 2024
@brc-dd
Copy link
Member

brc-dd commented Aug 29, 2024

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.

@vuejs vuejs deleted a comment Aug 29, 2024
@brc-dd brc-dd added need more info Further information is requested and removed bug: pending triage Maybe a bug, waiting for confirmation labels Aug 29, 2024
@thompsonjiang
Copy link
Author

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.

image
image
image
image
Only one global component .I can't find reson.

@brc-dd
Copy link
Member

brc-dd commented Sep 4, 2024

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)?

@thompsonjiang
Copy link
Author

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.

vitepress-demo.zip

@thompsonjiang
Copy link
Author

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".
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
need more info Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants