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

Hydration completed but contains mismatches #2608

Closed
4 tasks done
lmylinux opened this issue Jul 12, 2023 · 1 comment
Closed
4 tasks done

Hydration completed but contains mismatches #2608

lmylinux opened this issue Jul 12, 2023 · 1 comment
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@lmylinux
Copy link

Describe the bug

I use nginx to deploy vitepress
When I visit atopno.cn and click one by one to enter the article, there is no problem
But when I directly access the complete link of a certain article, there will be an 'Hydration completed but contains mismatches' error and misalignment behavior

Reproduction

npm run docs:build = vitepress build docs

Expected behavior

I hope there is no problem when I directly access a certain article
The article link is as follows
https://www.atopno.cn/mileage/Linux/Jenkins/automake

System Info

System:
    OS: Windows 10 10.0.22621
    CPU: (12) x64 Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz
    Memory: 4.23 GB / 15.91 GB
  Binaries:
    Node: 16.15.0 - E:\node\node.EXE
    npm: 8.5.5 - E:\node\npm.CMD
  Browsers:
    Chrome: 114.0.5735.199
    Edge: Spartan (44.22621.1848.0), Chromium (114.0.1823.79)
    Internet Explorer: 11.0.22621.1
  npmPackages:
    vitepress: ^1.0.0-beta.2 => 1.0.0-beta.2

Additional context

No response

Validations

@lmylinux lmylinux added the bug: pending triage Maybe a bug, waiting for confirmation label Jul 12, 2023
@brc-dd
Copy link
Member

brc-dd commented Aug 3, 2023

We are working on providing better error messages (track #422). However, this is not a bug in vitepress, but in your code itself. It can happen because of many things: https://vuejs.org/guide/scaling-up/ssr.html#hydration-mismatch

@brc-dd brc-dd closed this as not planned Won't fix, can't repro, duplicate, stale Aug 3, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 11, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug: pending triage Maybe a bug, waiting for confirmation
Projects
None yet
Development

No branches or pull requests

2 participants