vuepress / core

Vue-Powered Static Site Generator
https://vuepress.vuejs.org
MIT License
2.17k stars 923 forks source link

[Bug report] Cannot find package '@internal/pagesData' #1356

Closed MelodyLLL closed 1 year ago

MelodyLLL commented 1 year ago

Description

config中一旦引入 vuepress-plugin-comment2,dev可正常运行,但是打包会出现 Cannot find package '@internal/pagesData' 的报错。去掉该引用一切正常。

Reproduction

https://github.com/MelodyLLL/MelodyLLL_BLOG

Used Package Manager

npm

System Info

System:
    OS: macOS 12.6
    CPU: (8) arm64 Apple M1
    Memory: 114.28 MB / 16.00 GB
    Shell: 5.8.1 - /bin/zsh
  Binaries:
    Node: 16.20.0 - ~/.nvm/versions/node/v16.20.0/bin/node
    Yarn: 1.18.0 - ~/.nvm/versions/node/v14.19.1/bin/yarn
    npm: 8.19.4 - ~/.nvm/versions/node/v16.20.0/bin/npm
  Utilities:
    Git: 2.22.0 - /usr/local/bin/git
  Browsers:
    Chrome: 114.0.5735.106
    Edge: Not Found
    Firefox: Not Found
    Safari: 16.0
  npmPackages:
    @vuepress/bundler-vite:  2.0.0-beta.63 
    @vuepress/bundler-webpack: Not Found
    @vuepress/cli:  2.0.0-beta.63 
    @vuepress/client:  2.0.0-beta.63 
    @vuepress/core:  2.0.0-beta.63 
    @vuepress/markdown:  2.0.0-beta.63 
    @vuepress/plugin-active-header-links:  2.0.0-beta.63 
    @vuepress/plugin-back-to-top:  2.0.0-beta.63 
    @vuepress/plugin-container:  2.0.0-beta.63 
    @vuepress/plugin-docsearch: Not Found
    @vuepress/plugin-external-link-icon:  2.0.0-beta.63 
    @vuepress/plugin-git:  2.0.0-beta.63 
    @vuepress/plugin-google-analytics: Not Found
    @vuepress/plugin-medium-zoom:  2.0.0-beta.63 
    @vuepress/plugin-nprogress:  2.0.0-beta.63 
    @vuepress/plugin-palette:  2.0.0-beta.63 
    @vuepress/plugin-prismjs:  2.0.0-beta.63 
    @vuepress/plugin-pwa: Not Found
    @vuepress/plugin-pwa-popup: Not Found
    @vuepress/plugin-register-components: Not Found
    @vuepress/plugin-search: ^2.0.0-beta.63 => 2.0.0-beta.63 
    @vuepress/plugin-shiki: Not Found
    @vuepress/plugin-theme-data:  2.0.0-beta.63 
    @vuepress/plugin-toc: Not Found
    @vuepress/shared:  2.0.0-beta.63 
    @vuepress/theme-default:  2.0.0-beta.63 
    @vuepress/utils:  2.0.0-beta.63 
    vue:  3.3.4 
    vue-loader: Not Found
    vue-router:  4.2.2 
    vuepress: ^2.0.0-beta.63 => 2.0.0-beta.63 
    vuepress-vite:  2.0.0-beta.63 
    vuepress-webpack: Not Found
Mister-Hope commented 1 year ago

I think this issue is duplicated by https://github.com/vuepress/vuepress-next/issues/1283, I think every thing should work fine if you switch to PNPM

MelodyLLL commented 1 year ago

I think this issue is duplicated by #1283, I think every thing should work fine if you switch to PNPM

ok man i'll have a try, thanks, have a great day.