You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
error during build:
Error: Cannot find package 'vue' imported from /path/to/my/project
at __node_internal_ (file:///path/to/my/project/node_modules/.pnpm/import-meta-resolve@4.1.0/node_modules/import-meta-resolve/lib/errors.js:436:11)
at new NodeError (file:///path/to/my/project/node_modules/.pnpm/import-meta-resolve@4.1.0/node_modules/import-meta-resolve/lib/errors.js:380:5)
at packageResolve (file:///path/to/my/project/node_modules/.pnpm/import-meta-resolve@4.1.0/node_modules/import-meta-resolve/lib/resolve.js:1035:9)
at moduleResolve (file:///path/to/my/project/node_modules/.pnpm/import-meta-resolve@4.1.0/node_modules/import-meta-resolve/lib/resolve.js:1113:18)
at defaultResolve (file:///path/to/my/project/node_modules/.pnpm/import-meta-resolve@4.1.0/node_modules/import-meta-resolve/lib/resolve.js:1289:15)
at resolve (file:///path/to/my/project/node_modules/.pnpm/import-meta-resolve@4.1.0/node_modules/import-meta-resolve/index.js:32:12)
at resolveEntry (file:///path/to/my/project/node_modules/.pnpm/vite-plugin-chunk-split@0.5.0_vite@5.2.11_@types+node@20.12.8_sass@1.76.0_/node_modules/vite-plugin-chunk-split/dist/index.mjs:53:10)
at file:///path/to/my/project/node_modules/.pnpm/vite-plugin-chunk-split@0.5.0_vite@5.2.11_@types+node@20.12.8_sass@1.76.0_/node_modules/vite-plugin-chunk-split/dist/index.mjs:67:76
at Array.map (<anonymous>)
at wrapCustomSplitConfig (file:///path/to/my/project/node_modules/.pnpm/vite-plugin-chunk-split@0.5.0_vite@5.2.11_@types+node@20.12.8_sass@1.76.0_/node_modules/vite-plugin-chunk-split/dist/index.mjs:67:62)
环境
npm create vue@latest
创建的 Vue 3 项目。环境如下:问题
配置如下:
运行
vite build
提示以下错误:临时解决
把配置修改为:
可以正常打包。但不确定有什么不良后果。
感谢关注!
The text was updated successfully, but these errors were encountered: