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

[Bug report] 构建网页时发生报错导致网页无法正常显示 #1523

Closed
AkarinLiu opened this issue Mar 30, 2024 · 5 comments
Closed
Labels
invalid Invalid issues

Comments

@AkarinLiu
Copy link

Description

PS C:\Users\AkarinLiu\Documents\Git\navpages> yarn docs:build
yarn run v1.22.22
$ vuepress build docs
✔ Initializing and preparing data - done in 906ms
✔ Compiling with vite - done in 10.07s
⠙ Rendering 4 pagesError: useClientData() is called without provider.
    at useClientData (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:223:11)
    at useRouteLocale (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:230:28)
    at useLocaleConfig (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:418:23)
    at useCopyCode (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:484:18)
    at Object.setup (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:555:5)
    at setup (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:2914:59)
    at callWithErrorHandling (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\runtime-core\dist\runtime-core.cjs.prod.js:82:19)
    at setupStatefulComponent (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\runtime-core\dist\runtime-core.cjs.prod.js:6039:25)
    at setupComponent (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\runtime-core\dist\runtime-core.cjs.prod.js:6026:36)
    at renderComponentVNode (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\server-renderer\dist\server-renderer.cjs.prod.js:358:15)
Error: useClientData() is called without provider.
    at useClientData (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:223:11)
    at useRouteLocale (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:230:28)
    at useLocaleConfig (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:418:23)
    at useCopyCode (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:484:18)
    at Object.setup (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:555:5)
    at setup (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:2914:59)
    at callWithErrorHandling (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\runtime-core\dist\runtime-core.cjs.prod.js:82:19)
    at setupStatefulComponent (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\runtime-core\dist\runtime-core.cjs.prod.js:6039:25)
    at setupComponent (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\runtime-core\dist\runtime-core.cjs.prod.js:6026:36)
    at renderComponentVNode (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\server-renderer\dist\server-renderer.cjs.prod.js:358:15)
Error: useClientData() is called without provider.
    at useClientData (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:223:11)
    at useRouteLocale (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:230:28)
    at useLocaleConfig (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:418:23)
    at useCopyCode (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:484:18)
    at Object.setup (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:555:5)
    at setup (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:2914:59)
    at callWithErrorHandling (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\runtime-core\dist\runtime-core.cjs.prod.js:82:19)
e.cjs.prod.js:6039:25)
    at setupComponent (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\runtime-core\dist\runtime-core.cjs.prod.js:6026:36)
    at renderComponentVNode (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\server-renderer\dist\server-renderer.cjs.prod.js:358:15)
Error: useClientData() is called without provider.
    at useClientData (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:223:11)
    at useRouteLocale (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:230:28)
    at useLocaleConfig (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:418:23)
    at useCopyCode (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:484:18)
    at Object.setup (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:555:5)
    at setup (file:///C:/Users/AkarinLiu/Documents/Git/navpages/docs/.vuepress/.temp/.server/app.C83FB6Nc.mjs:2914:59)
    at callWithErrorHandling (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\runtime-core\dist\runtime-core.cjs.prod.js:82:19)
    at setupStatefulComponent (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\runtime-core\dist\runtime-core.cjs.prod.js:6039:25)
    at setupComponent (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\runtime-core\dist\runtime-core.cjs.prod.js:6026:36)
    at renderComponentVNode (C:\Users\AkarinLiu\Documents\Git\navpages\node_modules\@vue\server-renderer\dist\server-renderer.cjs.prod.js:358:15)
✔ Rendering 4 pages - done in 182ms
success VuePress build completed in 13.30s!
Done in 14.96s.

Reproduction

https://github.com/AkarinLiu/navpages

Used Package Manager

yarn

System Info

PS C:\Users\AkarinLiu\Documents\Git\navpages> npx vuepress info

  System:
    OS: Windows 10 10.0.19045
    CPU: (4) x64 Intel(R) Core(TM) i5 CPU       M 480  @ 2.67GHz
    Memory: 1.65 GB / 5.68 GB
  Binaries:
    Node: 20.11.1 - C:\Program Files\nodejs\node.EXE
    Yarn: 1.22.22 - ~\AppData\Roaming\npm\yarn.CMD
    npm: 10.2.4 - C:\Program Files\nodejs\npm.CMD
    pnpm: Not Found
    bun: Not Found
  Utilities:
    Git: 2.44.0.
  Browsers:
    Chrome: Not Found
    Edge: Chromium (123.0.2420.65)
  npmPackages:
    @vuepress/bundler-vite: ^2.0.0-rc.7 => 2.0.0-rc.7
    @vuepress/bundler-webpack: Not Found
    @vuepress/cli:  2.0.0-rc.9
    @vuepress/client:  2.0.0-rc.7 (2.0.0-rc.9)
    @vuepress/core:  2.0.0-rc.9 (2.0.0-rc.7)
    @vuepress/markdown:  2.0.0-rc.9 (2.0.0-rc.7)
    @vuepress/shared:  2.0.0-rc.9 (2.0.0-rc.7)
    @vuepress/utils:  2.0.0-rc.9 (2.0.0-rc.7)
    vue: ^3.4.0 => 3.4.21
    vue-router:  4.3.0
    vuepress: ^2.0.0-rc.7 => 2.0.0-rc.9
Copy link

Hello @AkarinLiu. Please provide a minimal reproduction using a GitHub repository or v2.vuepress.vuejs.org/new. Issues marked with need reproduction will be closed if they have no activity within 7 days.

@AkarinLiu
Copy link
Author

@Mister-Hope
Copy link
Member

Use the same version first

@Mister-Hope
Copy link
Member

    @vuepress/bundler-vite: ^2.0.0-rc.7 => 2.0.0-rc.7
    @vuepress/bundler-webpack: Not Found
    @vuepress/cli:  2.0.0-rc.9
    @vuepress/client:  2.0.0-rc.7 (2.0.0-rc.9)
    @vuepress/core:  2.0.0-rc.9 (2.0.0-rc.7)
    @vuepress/markdown:  2.0.0-rc.9 (2.0.0-rc.7)
    @vuepress/shared:  2.0.0-rc.9 (2.0.0-rc.7)
    @vuepress/utils:  2.0.0-rc.9 (2.0.0-rc.7)
    vue: ^3.4.0 => 3.4.21
    vue-router:  4.3.0
    vuepress: ^2.0.0-rc.7 => 2.0.0-rc.9

Closing as you are not using the same version, and the test passed

@Mister-Hope Mister-Hope closed this as not planned Won't fix, can't repro, duplicate, stale Apr 1, 2024
@Mister-Hope Mister-Hope added invalid Invalid issues and removed need reproduction labels Apr 1, 2024
Copy link

github-actions bot commented Apr 1, 2024

Hello @AkarinLiu. This issue is marked as invalid and closed. Please follow the issue template.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid Invalid issues
Projects
None yet
Development

No branches or pull requests

2 participants