-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Hydration completed but contains mismatches #1627
Comments
It is possible the components of ElementPlus do not support SSR properly. Expand the error cause to see the error source. |
You can only see this information, and you can't see the specific source |
@brc-dd After the addition, the problem persists, i use vitepress-plugin-search & naive-ui |
The Vitepress-plugin-search will result in this issue. |
may be related to the teleports |
The issue might be related to vitepress-plugin-search as some people have mentioned. Not with vitepress itself. We can't tell unless you provide us a minimal reproducible example. If removing the plugin fixes it, then create an issue on it's repo instead. I'll review #1642 too, but it is less likely to be used by that plugin, using ClientOnly or SafeTeleport might be better choices there. |
The reason for the problem is that the Teleport needs special handling during SSR. Reproduction
<Teleport to="body">
<p>any content</p>
</Teleport>
Although the The PR #1642 provides a way to inject the teleport markup into the correct location in final page HTML. |
Is the |
Describe the bug
It will report errors in production
app.b77605b4.js:1 Hydration completed but contains mismatches
Reproduction
Expected behavior
It will report errors in production
app.b77605b4.js:1 Hydration completed but contains mismatches
System Info
Additional context
No response
Validations
The text was updated successfully, but these errors were encountered: