No known conditions for “./lib/locale/lang/zh-cn“ specifier in “element-plus“ package [plugin vite:d
·
运行ncu -u 升级所有项目依赖的时候,报了如题的错误
"vue": "^3.3.4",
"element-plus": "^2.3.8",
解决方案:
2.3.7以及之前的引用方法:
import zhCN from "element-plus/lib/locale/lang/zh-cn";
import en from "element-plus/lib/locale/lang/en";
2.3.8的引用方法:
import zhCN from "element-plus/dist/locale/zh-cn.mjs";
import en from "element-plus/dist/locale/en.mjs";
更多推荐
已为社区贡献1条内容
所有评论(0)