- vue 报错-Module not found: Error:
- Vue3报错 Can‘t import the named ex
- Could not find a declaration fil
- snapshot_selenium报错处理
- nginx: [error] invalid PID numbe
- Mac PHP7.1 报错 dyld: Library not
- element-plus 更换主题色 SassError: @f
- localhost/:1 Refused to load the
- Python学习记录-bash: pip: command no
- (5)taro每日n坑---[ app.json 文件内容错误]
image.png
解决办法:
1. 直接按照提示往 .d.ts 的文件里面加入下面这行代码
declare module 'element-plus/dist/locale/zh-cn.mjs
image.png
2. 直接替换引入模块
import zhCn from 'element-plus/es/locale/lang/zh-cn'
// import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import zhCn from 'element-plus/es/locale/lang/zh-cn'
image.png







网友评论