vuepress-theme-hope: [Bug] Report an error in pageview.js with docs:dev

Checklist

  • I am using LTS version of Node.js.
  • I am using the latest v2 version of vuepress and vuepress official plugins.
  • I am using the latest v2 version of vuepress-theme-hope and all plugins in this repo.
  • I am following the docs and I am sure I am using the correct configuration.
  • I have searched FAQ

Package name

vuepress-theme-hope

Which operating system are you using?

  • macOS
  • Windows
  • Linux

Describe the bug

docs:build ran smoothly, and the building site was fine, but executing docs:dev reported an error.

20:43:35 [vite] Internal server error: Failed to resolve import "vuepress-plugin-comment2/lib/client/pageview.js" from "docs\.vuepress\.cache\deps\chunk-PKWOCWZ5.js?v=ea601e9d". Does the file exist?
  Plugin: vite:import-analysis
  File: D:/blog/docs/.vuepress/.cache/deps/chunk-PKWOCWZ5.js?v=ea601e9d
  247|        updatePage(page ? Number(page) : 1);
  248|        if (SUPPORT_PAGEVIEW)
  249|          void import("vuepress-plugin-comment2/lib/client/pageview.js").then(({ updatePageview }) => {
     |                      ^
  250|            updatePageview();
  251|          });

Additional context

No response

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 21 (10 by maintainers)

Most upvoted comments

Or, another way, try to reproduce it on stackblitz, if the file does exisit and you can have everything work find on stackblitz, then I have nothing to do.