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" when path contains URL params #3469

Closed
4 tasks done
zyxkad opened this issue Jan 17, 2024 · 11 comments
Closed
4 tasks done
Labels
bug: pending triage Maybe a bug, waiting for confirmation

Comments

@zyxkad
Copy link

zyxkad commented Jan 17, 2024

Describe the bug

When I add some url params ?a=1&b=2 after the page's URL, the console log an error Hydration completed but contains mismatches. and the page rendering is incorrect

Reproduction

  1. Clone from https://github.com/GlobeMC/crashmc.com
  2. pnpm run docs:build && pnpm run docs:preview
  3. Access http://localhost:4173/client/system.html and http://localhost:4173/client/system.html?someparam=somevalue
  4. The page without param will works well, but the page with the URL param will somehow mixed with the home page's content

Expected behavior

The two pages should looks exactly same.

System Info

System:
    OS: macOS 14.1.1
    CPU: (8) arm64 Apple M1 Pro
    Memory: 149.67 MB / 16.00 GB
    Shell: 3.2.57 - /bin/bash
  Binaries:
    Node: 21.4.0 - /opt/homebrew/bin/node
    Yarn: 1.22.19 - /opt/homebrew/bin/yarn
    npm: 10.3.0 - /opt/homebrew/bin/npm
    pnpm: 8.6.12 - /opt/homebrew/bin/pnpm
  Browsers:
    Chrome: 120.0.6099.216
  npmPackages:
    vitepress: 1.0.0-rc.39 => 1.0.0-rc.39

Additional context

I am not sure if it is a vitepress route issue or if it's a pwa route issue, I tried made an example without pwa but it don't have problem

A live example can be https://beta.crashmc.com/analyzer.html and https://beta.crashmc.com/analyzer.html?

Validations

@zyxkad zyxkad added the bug: pending triage Maybe a bug, waiting for confirmation label Jan 17, 2024
@brc-dd
Copy link
Member

brc-dd commented Jan 18, 2024

In your theme/index.ts file you're spreading the default theme instead of extending it. Change line 20 to

extends: Theme,

Since you were not extending the theme properly, Badge component was not getting registered which you are using in your system.md file. It has nothing to do with query parameters being present or not, both are giving that error in console to me.

Tip - you can run DEBUG=true pnpm docs:build && pnpm docs:preview to see what's causing the hydration mismatch.

@brc-dd brc-dd closed this as completed Jan 18, 2024
@zyxkad
Copy link
Author

zyxkad commented Jan 18, 2024

Hi @brc-dd thanks for your reply,
now I changed theme/index.ts to:

import Theme from "vitepress/theme"
import { h } from "vue"
import Contributors from "./components/Contributors.vue"
import LauncherBadge from "./components/LauncherBadge.vue"
import ReloadPrompt from "./components/ReloadPrompt.vue"
import giscusTalk from "vitepress-plugin-comment-with-giscus"
import vitepressNprogress from "@andatoshiki/vitepress-plugin-nprogress"
import "@andatoshiki/vitepress-plugin-nprogress/lib/css/index.css"
import "viewerjs/dist/viewer.min.css"
import imageViewer from "vitepress-plugin-image-viewer"
import vImageViewer from "vitepress-plugin-image-viewer/lib/vImageViewer.vue"
import { useData, useRoute } from "vitepress"
import codeblocksFold from "vitepress-plugin-codeblocks-fold" // import method
import "vitepress-plugin-codeblocks-fold/style/index.scss" // import style
import "./style.css"
import vitepressBackToTop from "vitepress-plugin-back-to-top"
import "vitepress-plugin-back-to-top/dist/style.css"

export default {
  extends: Theme,
  Layout: () => {
    return h(Theme.Layout, null, {
      // https://vitepress.dev/guide/extending-default-theme#layout-slots
      "doc-footer-before": () => h(Contributors),
      "layout-bottom": () => h(ReloadPrompt),
    })
  },
  enhanceApp(ctx) {
    ctx.app.component("LauncherBadge", LauncherBadge)
    vitepressNprogress(ctx)
    ctx.app.component("vImageViewer", vImageViewer)
    vitepressBackToTop({
      // default
      threshold: 300,
    })
  },
  setup() {
    // Get frontmatter and route
    const { frontmatter } = useData()
    const route = useRoute()
    // Using
    imageViewer(route)
    codeblocksFold({ route, frontmatter }, true, 400)

    // Obtain configuration from: https://giscus.app/
    giscusTalk(
      {
        repo: "GlobeMC/crashmc.com",
        repoId: "R_kgDOKBR8xw",
        category: "Giscus",
        categoryId: "DIC_kwDOKBR8x84CYOmB",
        mapping: "title",
        strict: "0",
        reactionsEnabled: "1",
        emitMetadata: "0",
        inputPosition: "top",
        theme: "preferred_color_scheme",
        lang: "zh-CN",
        loading: "lazy",
      },
      {
        frontmatter,
        route,
      },
    )
  },
}

However, it still has the issue.

Terminal logs:

$ DEBUG=true pnpm docs:build && pnpm docs:preview

> mccrash-docs@0.0.0 docs:build /Users/ckpn/Mine/projects/javascript/crashmc.com
> vitepress build docs

                                                                                                                                                            
  vitepress v1.0.0-rc.39

✓ building client + server bundles...                                                                                                                       
✓ rendering pages...                                                                                                                                        
build complete in 6.81s.

> mccrash-docs@0.0.0 docs:preview /Users/ckpn/Mine/projects/javascript/crashmc.com
> vitepress preview docs

                                                                                                                                                            
  vitepress v1.0.0-rc.39

Built site served at http://localhost:4173/
Browser console logs
[Vue warn]: Hydration node mismatch:
- rendered on server: <!---->  
- expected on client: div
warn$1 @ framework.IIP6Ap7J.js:1294
handleMismatch @ framework.IIP6Ap7J.js:4308
onMismatch @ framework.IIP6Ap7J.js:3966
hydrateNode @ framework.IIP6Ap7J.js:4060
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrate @ framework.IIP6Ap7J.js:3957
mount @ framework.IIP6Ap7J.js:3417
app.mount @ framework.IIP6Ap7J.js:7306
(anonymous) @ app.RzLsuxKD.js:104
Promise.then (async)
(anonymous) @ app.RzLsuxKD.js:102
Promise.then (async)
(anonymous) @ app.RzLsuxKD.js:101
framework.IIP6Ap7J.js:1294 [Vue warn]: Hydration node mismatch:
- rendered on server: <!---->  
- expected on client: aside
warn$1 @ framework.IIP6Ap7J.js:1294
handleMismatch @ framework.IIP6Ap7J.js:4308
onMismatch @ framework.IIP6Ap7J.js:3966
hydrateNode @ framework.IIP6Ap7J.js:4060
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrate @ framework.IIP6Ap7J.js:3957
mount @ framework.IIP6Ap7J.js:3417
app.mount @ framework.IIP6Ap7J.js:7306
(anonymous) @ app.RzLsuxKD.js:104
Promise.then (async)
(anonymous) @ app.RzLsuxKD.js:102
Promise.then (async)
(anonymous) @ app.RzLsuxKD.js:101
framework.IIP6Ap7J.js:1294 [Vue warn]: Hydration children mismatch on <div class=​"image-bg" data-v-69a70da9>​…​</div>​ 
Server rendered element contains fewer child nodes than client vdom.
warn$1 @ framework.IIP6Ap7J.js:1294
hydrateChildren @ framework.IIP6Ap7J.js:4261
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrate @ framework.IIP6Ap7J.js:3957
mount @ framework.IIP6Ap7J.js:3417
app.mount @ framework.IIP6Ap7J.js:7306
(anonymous) @ app.RzLsuxKD.js:104
Promise.then (async)
(anonymous) @ app.RzLsuxKD.js:102
Promise.then (async)
(anonymous) @ app.RzLsuxKD.js:101
framework.IIP6Ap7J.js:1294 [Vue warn]: Hydration children mismatch on <div class=​"image-container" data-v-69a70da9>​…​</div>​ 
Server rendered element contains more child nodes than client vdom.
warn$1 @ framework.IIP6Ap7J.js:1294
hydrateElement @ framework.IIP6Ap7J.js:4170
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrate @ framework.IIP6Ap7J.js:3957
mount @ framework.IIP6Ap7J.js:3417
app.mount @ framework.IIP6Ap7J.js:7306
(anonymous) @ app.RzLsuxKD.js:104
Promise.then (async)
(anonymous) @ app.RzLsuxKD.js:102
Promise.then (async)
(anonymous) @ app.RzLsuxKD.js:101
framework.IIP6Ap7J.js:1294 [Vue warn]: Hydration children mismatch on <div class=​"VPHero has-image VPHomeHero" data-v-2c0f5787 data-v-69a70da9>​…​</div>​ 
Server rendered element contains fewer child nodes than client vdom.
warn$1 @ framework.IIP6Ap7J.js:1294
hydrateChildren @ framework.IIP6Ap7J.js:4261
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrate @ framework.IIP6Ap7J.js:3957
mount @ framework.IIP6Ap7J.js:3417
app.mount @ framework.IIP6Ap7J.js:7306
(anonymous) @ app.RzLsuxKD.js:104
Promise.then (async)
(anonymous) @ app.RzLsuxKD.js:102
Promise.then (async)
(anonymous) @ app.RzLsuxKD.js:101
framework.IIP6Ap7J.js:1294 [Vue warn]: Hydration children mismatch on <div class=​"VPHome" data-v-1b28adad data-v-2c0f5787>​…​</div>​ 
Server rendered element contains more child nodes than client vdom.
warn$1 @ framework.IIP6Ap7J.js:1294
hydrateElement @ framework.IIP6Ap7J.js:4170
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateChildren @ framework.IIP6Ap7J.js:4248
hydrateElement @ framework.IIP6Ap7J.js:4157
hydrateNode @ framework.IIP6Ap7J.js:4062
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrateSubTree @ framework.IIP6Ap7J.js:5023
componentUpdateFn @ framework.IIP6Ap7J.js:5040
run @ framework.IIP6Ap7J.js:368
instance.update @ framework.IIP6Ap7J.js:5141
setupRenderEffect @ framework.IIP6Ap7J.js:5146
mountComponent @ framework.IIP6Ap7J.js:4977
hydrateNode @ framework.IIP6Ap7J.js:4081
hydrate @ framework.IIP6Ap7J.js:3957
mount @ framework.IIP6Ap7J.js:3417
app.mount @ framework.IIP6Ap7J.js:7306
(anonymous) @ app.RzLsuxKD.js:104
Promise.then (async)
(anonymous) @ app.RzLsuxKD.js:102
Promise.then (async)
(anonymous) @ app.RzLsuxKD.js:101
theme.2dWP7RG7.js:6757 初始化预览器
theme.2dWP7RG7.js:3674 undefined
framework.IIP6Ap7J.js:3961 Hydration completed but contains mismatches.
hydrate @ framework.IIP6Ap7J.js:3961
mount @ framework.IIP6Ap7J.js:3417
app.mount @ framework.IIP6Ap7J.js:7306
(anonymous) @ app.RzLsuxKD.js:104
Promise.then (async)
(anonymous) @ app.RzLsuxKD.js:102
Promise.then (async)
(anonymous) @ app.RzLsuxKD.js:101
widget-f4c6f1c6915e5ed7.js:1 
        
        
       GET https://giscus.app/api/discussions?repo=GlobeMC%2Fcrashmc.com&term=%E7%B3%BB%E7%BB%9F%E9%97%AE%E9%A2%98+%7C+GlobeMC&category=Giscus&number=0&strict=false&last=15 404 (Not Found)
h @ widget-f4c6f1c6915e5ed7.js:1
t @ 7883-09ddbf33c0503dab.js:1
(anonymous) @ 7883-09ddbf33c0503dab.js:1
(anonymous) @ 7883-09ddbf33c0503dab.js:1
(anonymous) @ 7883-09ddbf33c0503dab.js:1
(anonymous) @ 7883-09ddbf33c0503dab.js:1
U @ framework-6afbbdd4d5ef78c7.js:1
(anonymous) @ framework-6afbbdd4d5ef78c7.js:1
(anonymous) @ framework-6afbbdd4d5ef78c7.js:1
i.YM.__c @ framework-6afbbdd4d5ef78c7.js:1
T @ framework-6afbbdd4d5ef78c7.js:1
W @ framework-6afbbdd4d5ef78c7.js:1
I @ framework-6afbbdd4d5ef78c7.js:1
an @ framework-6afbbdd4d5ef78c7.js:1
Q.s.default.createElement.callbacks @ main-97d11f839af662f2.js:1
Q @ main-97d11f839af662f2.js:1
(anonymous) @ main-97d11f839af662f2.js:1
n @ main-97d11f839af662f2.js:1
s @ main-97d11f839af662f2.js:1
(anonymous) @ main-97d11f839af662f2.js:1
(anonymous) @ main-97d11f839af662f2.js:1
te @ main-97d11f839af662f2.js:1
ee @ main-97d11f839af662f2.js:1
(anonymous) @ main-97d11f839af662f2.js:1
n @ main-97d11f839af662f2.js:1
s @ main-97d11f839af662f2.js:1
Promise.then (async)
n @ main-97d11f839af662f2.js:1
s @ main-97d11f839af662f2.js:1
Promise.then (async)
n @ main-97d11f839af662f2.js:1
s @ main-97d11f839af662f2.js:1
Promise.then (async)
n @ main-97d11f839af662f2.js:1
s @ main-97d11f839af662f2.js:1
(anonymous) @ main-97d11f839af662f2.js:1
(anonymous) @ main-97d11f839af662f2.js:1
ne @ main-97d11f839af662f2.js:1
t.hydrate @ main-97d11f839af662f2.js:1
(anonymous) @ main-97d11f839af662f2.js:1
Promise.then (async)
3868 @ main-97d11f839af662f2.js:1
n @ webpack-80f3759086cbdddb.js:1
(anonymous) @ main-97d11f839af662f2.js:1
n.O @ webpack-80f3759086cbdddb.js:1
(anonymous) @ main-97d11f839af662f2.js:1
t @ webpack-80f3759086cbdddb.js:1
(anonymous) @ main-97d11f839af662f2.js:1
widget-f4c6f1c6915e5ed7.js:1 
        
        
       GET https://giscus.app/api/discussions?repo=GlobeMC%2Fcrashmc.com&term=%E7%B3%BB%E7%BB%9F%E9%97%AE%E9%A2%98+%7C+GlobeMC&category=Giscus&number=0&strict=false&first=15 404 (Not Found)
h @ widget-f4c6f1c6915e5ed7.js:1
t @ 7883-09ddbf33c0503dab.js:1
(anonymous) @ 7883-09ddbf33c0503dab.js:1
(anonymous) @ 7883-09ddbf33c0503dab.js:1
(anonymous) @ 7883-09ddbf33c0503dab.js:1
(anonymous) @ 7883-09ddbf33c0503dab.js:1
U @ framework-6afbbdd4d5ef78c7.js:1
(anonymous) @ framework-6afbbdd4d5ef78c7.js:1
(anonymous) @ framework-6afbbdd4d5ef78c7.js:1
i.YM.__c @ framework-6afbbdd4d5ef78c7.js:1
T @ framework-6afbbdd4d5ef78c7.js:1
W @ framework-6afbbdd4d5ef78c7.js:1
I @ framework-6afbbdd4d5ef78c7.js:1
an @ framework-6afbbdd4d5ef78c7.js:1
Q.s.default.createElement.callbacks @ main-97d11f839af662f2.js:1
Q @ main-97d11f839af662f2.js:1
(anonymous) @ main-97d11f839af662f2.js:1
n @ main-97d11f839af662f2.js:1
s @ main-97d11f839af662f2.js:1
(anonymous) @ main-97d11f839af662f2.js:1
(anonymous) @ main-97d11f839af662f2.js:1
te @ main-97d11f839af662f2.js:1
ee @ main-97d11f839af662f2.js:1
(anonymous) @ main-97d11f839af662f2.js:1
n @ main-97d11f839af662f2.js:1
s @ main-97d11f839af662f2.js:1
Promise.then (async)
n @ main-97d11f839af662f2.js:1
s @ main-97d11f839af662f2.js:1
Promise.then (async)
n @ main-97d11f839af662f2.js:1
s @ main-97d11f839af662f2.js:1
Promise.then (async)
n @ main-97d11f839af662f2.js:1
s @ main-97d11f839af662f2.js:1
(anonymous) @ main-97d11f839af662f2.js:1
(anonymous) @ main-97d11f839af662f2.js:1
ne @ main-97d11f839af662f2.js:1
t.hydrate @ main-97d11f839af662f2.js:1
(anonymous) @ main-97d11f839af662f2.js:1
Promise.then (async)
3868 @ main-97d11f839af662f2.js:1
n @ webpack-80f3759086cbdddb.js:1
(anonymous) @ main-97d11f839af662f2.js:1
n.O @ webpack-80f3759086cbdddb.js:1
(anonymous) @ main-97d11f839af662f2.js:1
t @ webpack-80f3759086cbdddb.js:1
(anonymous) @ main-97d11f839af662f2.js:1
giscus-aTimukGI.B9OPx2YH.js:833 [giscus] Discussion not found. A new discussion will be created if a comment/reaction is submitted.
handleMessageEvent @ giscus-aTimukGI.B9OPx2YH.js:833

@brc-dd
Copy link
Member

brc-dd commented Jan 18, 2024

Hi, on which page?

@zyxkad
Copy link
Author

zyxkad commented Jan 18, 2024

Same page, so http://localhost:4173/client/system.html?

@zyxkad
Copy link
Author

zyxkad commented Jan 18, 2024

For additional information, this issue won't happen when you first load the page (or load after clear cache), but after you reload the page. I tried remove the pwa and this issue still happen

@zyxkad
Copy link
Author

zyxkad commented Jan 18, 2024

And it won't happen when you using pnpm build docs:dev

@brc-dd
Copy link
Member

brc-dd commented Jan 18, 2024

Seems like some issue with the PWA plugin. It seems to be breaking on its docs too - https://vite-pwa-org.netlify.app/guide/register-service-worker.html? Can you create an issue at https://github.com/vite-pwa/vitepress/issues (seems to be an edge case as only .html? is breaking, .html?a=b will work fine)

@zyxkad
Copy link
Author

zyxkad commented Jan 18, 2024

@brc-dd Now I make index.ts to:

import Theme from "vitepress/theme"

console.error("this error is for ensure the changed has been made, version 3")
export default Theme

And I removed every thing relative to pwa include the things inside config.ts file, but it still rendering incorrectly.

Terminal logs are same as above

Browser console logs:

theme.h1Fl5R21.js:3438 this error is for ensure the changed has been made, version 2
(anonymous) @ theme.h1Fl5R21.js:3438
framework.jxKNwNRV.js:1294 [Vue warn]: Hydration node mismatch:
- rendered on server: <!---->  
- expected on client: div
warn$1 @ framework.jxKNwNRV.js:1294
handleMismatch @ framework.jxKNwNRV.js:4308
onMismatch @ framework.jxKNwNRV.js:3966
hydrateNode @ framework.jxKNwNRV.js:4060
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrate @ framework.jxKNwNRV.js:3957
mount @ framework.jxKNwNRV.js:3417
app.mount @ framework.jxKNwNRV.js:7276
(anonymous) @ app.5N7R9CBN.js:104
Promise.then (async)
(anonymous) @ app.5N7R9CBN.js:102
Promise.then (async)
(anonymous) @ app.5N7R9CBN.js:101
framework.jxKNwNRV.js:1294 [Vue warn]: Hydration node mismatch:
- rendered on server: <!---->  
- expected on client: aside
warn$1 @ framework.jxKNwNRV.js:1294
handleMismatch @ framework.jxKNwNRV.js:4308
onMismatch @ framework.jxKNwNRV.js:3966
hydrateNode @ framework.jxKNwNRV.js:4060
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrate @ framework.jxKNwNRV.js:3957
mount @ framework.jxKNwNRV.js:3417
app.mount @ framework.jxKNwNRV.js:7276
(anonymous) @ app.5N7R9CBN.js:104
Promise.then (async)
(anonymous) @ app.5N7R9CBN.js:102
Promise.then (async)
(anonymous) @ app.5N7R9CBN.js:101
framework.jxKNwNRV.js:1294 [Vue warn]: Hydration children mismatch on <div class=​"image-bg" data-v-69a70da9>​…​</div>​ 
Server rendered element contains fewer child nodes than client vdom.
warn$1 @ framework.jxKNwNRV.js:1294
hydrateChildren @ framework.jxKNwNRV.js:4261
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrate @ framework.jxKNwNRV.js:3957
mount @ framework.jxKNwNRV.js:3417
app.mount @ framework.jxKNwNRV.js:7276
(anonymous) @ app.5N7R9CBN.js:104
Promise.then (async)
(anonymous) @ app.5N7R9CBN.js:102
Promise.then (async)
(anonymous) @ app.5N7R9CBN.js:101
framework.jxKNwNRV.js:1294 [Vue warn]: Hydration children mismatch on <div class=​"image-container" data-v-69a70da9>​…​</div>​ 
Server rendered element contains more child nodes than client vdom.
warn$1 @ framework.jxKNwNRV.js:1294
hydrateElement @ framework.jxKNwNRV.js:4170
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrate @ framework.jxKNwNRV.js:3957
mount @ framework.jxKNwNRV.js:3417
app.mount @ framework.jxKNwNRV.js:7276
(anonymous) @ app.5N7R9CBN.js:104
Promise.then (async)
(anonymous) @ app.5N7R9CBN.js:102
Promise.then (async)
(anonymous) @ app.5N7R9CBN.js:101
framework.jxKNwNRV.js:1294 [Vue warn]: Hydration children mismatch on <div class=​"VPHero has-image VPHomeHero" data-v-2c0f5787 data-v-69a70da9>​…​</div>​ 
Server rendered element contains fewer child nodes than client vdom.
warn$1 @ framework.jxKNwNRV.js:1294
hydrateChildren @ framework.jxKNwNRV.js:4261
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrate @ framework.jxKNwNRV.js:3957
mount @ framework.jxKNwNRV.js:3417
app.mount @ framework.jxKNwNRV.js:7276
(anonymous) @ app.5N7R9CBN.js:104
Promise.then (async)
(anonymous) @ app.5N7R9CBN.js:102
Promise.then (async)
(anonymous) @ app.5N7R9CBN.js:101
framework.jxKNwNRV.js:1294 [Vue warn]: Hydration children mismatch on <div class=​"VPHome" data-v-1b28adad data-v-2c0f5787>​…​</div>​ 
Server rendered element contains more child nodes than client vdom.
warn$1 @ framework.jxKNwNRV.js:1294
hydrateElement @ framework.jxKNwNRV.js:4170
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateChildren @ framework.jxKNwNRV.js:4248
hydrateElement @ framework.jxKNwNRV.js:4157
hydrateNode @ framework.jxKNwNRV.js:4062
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrateSubTree @ framework.jxKNwNRV.js:5020
componentUpdateFn @ framework.jxKNwNRV.js:5037
run @ framework.jxKNwNRV.js:368
instance.update @ framework.jxKNwNRV.js:5138
setupRenderEffect @ framework.jxKNwNRV.js:5143
mountComponent @ framework.jxKNwNRV.js:4974
hydrateNode @ framework.jxKNwNRV.js:4081
hydrate @ framework.jxKNwNRV.js:3957
mount @ framework.jxKNwNRV.js:3417
app.mount @ framework.jxKNwNRV.js:7276
(anonymous) @ app.5N7R9CBN.js:104
Promise.then (async)
(anonymous) @ app.5N7R9CBN.js:102
Promise.then (async)
(anonymous) @ app.5N7R9CBN.js:101
framework.jxKNwNRV.js:3961 Hydration completed but contains mismatches.

@zyxkad
Copy link
Author

zyxkad commented Jan 18, 2024

Oh yes, my fault, idk why the empty cache reload does not really work

@brc-dd
Copy link
Member

brc-dd commented Jan 18, 2024

You need to remove service worker too. Open devtools -> application -> service workers -> unregister

@userquin
Copy link
Collaborator

It is better to clear storage

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

3 participants