[plugin: vite:dep-scan] No known conditions for “./lib/locale/lang/zh-cn“ entry in “element-plus“

Vue3运行项目是报错

解决方案1:

把  import zhCn from "element-plus/lib/locale/lang/zh-cn";替换成: import zhCn from "element-plus/es/locale/lang/zh-cn"

解决方法2:

使用yard add  element-plus  重新装下依赖,然后再运行。

error when starting dev server: Error: No known conditions for "./lib/locale/lang/zh-cn" specifier in "element-plus" package at e (file:///D:/101CANON/BrainTumorDetection/BrainTumorDetection/BrainTumorDetection_vue/node_modules/vite/dist/node/chunks/dep-add429cd.js:21446:25) at n (file:///D:/101CANON/BrainTumorDetection/BrainTumorDetection/BrainTumorDetection_vue/node_modules/vite/dist/node/chunks/dep-add429cd.js:21446:646) at o (file:///D:/101CANON/BrainTumorDetection/BrainTumorDetection/BrainTumorDetection_vue/node_modules/vite/dist/node/chunks/dep-add429cd.js:21446:1297) at resolveExportsOrImports (file:///D:/101CANON/BrainTumorDetection/BrainTumorDetection/BrainTumorDetection_vue/node_modules/vite/dist/node/chunks/dep-add429cd.js:28747:20) at resolveDeepImport (file:///D:/101CANON/BrainTumorDetection/BrainTumorDetection/BrainTumorDetection_vue/node_modules/vite/dist/node/chunks/dep-add429cd.js:28766:31) at tryNodeResolve (file:///D:/101CANON/BrainTumorDetection/BrainTumorDetection/BrainTumorDetection_vue/node_modules/vite/dist/node/chunks/dep-add429cd.js:28454:20) at Context.resolveId (file:///D:/101CANON/BrainTumorDetection/BrainTumorDetection/BrainTumorDetection_vue/node_modules/vite/dist/node/chunks/dep-add429cd.js:28213:28) at Object.resolveId (file:///D:/101CANON/BrainTumorDetection/BrainTumorDetection/BrainTumorDetection_vue/node_modules/vite/dist/node/chunks/dep-add429cd.js:44279:64) at async file:///D:/101CANON/BrainTumorDetection/BrainTumorDetection/BrainTumorDetection_vue/node_modules/vite/dist/node/chunks/dep-add429cd.js:66144:21 at async file:///D:/101CANON/BrainTumorDetection/BrainTumorDetection/BrainTumorDetection_vue/node_modules/vite/dist/node/chunks/dep-add429cd.js:44928:20
03-29
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值