[Bug] 启动console,找不到@runikaros/api-client和@runikaros/shared #527
Labels
area/console
Issues or PRs related to the Ikaros Console
bug
Something isn't working
improvement
Improvements some feature
Milestone
提问前查询
组件
控制台 (console)
运行环境
版本:v0.11
报错相关的日志
发生了什么
运行 pnpm install
pnpm dev
提示找不到@runikaros/api-client和@runikaros/shared
[ERROR] [plugin vite:dep-scan] Failed to resolve entry for package "@runikaros/api-client". The package may have incorrect main/module/exports specified in its package.json.
[ERROR] [plugin vite:dep-scan] Failed to resolve entry for package "@runikaros/shared". The package may have incorrect main/module/exports specified in its package.json.
预期是怎样
x.log
pnpm dev
VITE v4.1.5 ready in 607 ms
➜ Local: http://localhost:3000/console/
➜ Network: use --host to expose
➜ press h to show help
✘ [ERROR] [plugin vite:dep-scan] Failed to resolve entry for package "@runikaros/api-client". The package may have incorrect main/module/exports specified in its package.json.
This error came from the "onResolve" callback registered here:
The plugin "vite:dep-scan" was triggered by this import
✘ [ERROR] [plugin vite:dep-scan] Failed to resolve entry for package "@runikaros/shared". The package may have incorrect main/module/exports specified in its package.json.
This error came from the "onResolve" callback registered here:
The plugin "vite:dep-scan" was triggered by this import
Build failed with 32 errors:
node_modules/.pnpm/esbuild@0.16.17/node_modules/esbuild/lib/main.js:1365:21: ERROR: [plugin: vite:dep-scan] Failed to resolve entry for package "@runikaros/api-client". The package may have incorrect main/module/exports specified in its package.json.
node_modules/.pnpm/esbuild@0.16.17/node_modules/esbuild/lib/main.js:1365:21: ERROR: [plugin: vite:dep-scan] Failed to resolve entry for package "@runikaros/api-client". The package may have incorrect main/module/exports specified in its package.json.
node_modules/.pnpm/esbuild@0.16.17/node_modules/esbuild/lib/main.js:1365:21: ERROR: [plugin: vite:dep-scan] Failed to resolve entry for package "@runikaros/api-client". The package may have incorrect main/module/exports specified in its package.json.
node_modules/.pnpm/esbuild@0.16.17/node_modules/esbuild/lib/main.js:1365:21: ERROR: [plugin: vite:dep-scan] Failed to resolve entry for package "@runikaros/api-client". The package may have incorrect main/module/exports specified in its package.json.
node_modules/.pnpm/esbuild@0.16.17/node_modules/esbuild/lib/main.js:1365:21: ERROR: [plugin: vite:dep-scan] Failed to resolve entry for package "@runikaros/api-client". The package may have incorrect main/module/exports specified in its package.json.
...
如何复现
将代码更新至最新,当前为v0.11,运行pnpm install pnpm dev 后。会出现报错
其它补充内容
解决方法:
pnpm --filter ./packages/shared install
pnpm --filter ./packages/shared build
pnpm --filter ./packages/api-client install
pnpm --filter ./packages/api-client build
您将要去提交PR吗?
The text was updated successfully, but these errors were encountered: