【报错】无法找到模块“element-plus/es/locale/index.mjs”的声明文件。

报错:

无法找到模块"element-plus/es/locale/index.mjs"的声明文件。"E:/codeAll/work/test1/test2/HealinLikeMe-ui/node_modules/.pnpm/[email protected][email protected][email protected]_/node_modules/element-plus/es/locale/index.mjs"隐式拥有 "any" 类型。
There are types at xxxxxx/node_modules/element-plus/es/locale/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting. Consider updating to 'node16', 'nodenext', or 'bundler'.

解决:

将报错部分的"index.mjs"的后缀.mjs删除

变成如下部分,就没有报错了

相关推荐
翠莲6 分钟前
vue3+TS+eslint9配置
前端·代码规范
发渐稀8 分钟前
vue项目引入tailwindcss
前端·javascript·vue.js
用户26834842239599 分钟前
前端换肤功能最佳实践:从基础实现到高级优化
前端·css
前端掘金者H9 分钟前
Chrome插件实现WebPush推送通知的功能
前端·chrome
yinke小琪11 分钟前
快速开始 - TypeScript 入门指南
前端·typescript
青花雅月12 分钟前
封装标记📌前后数据比较的表格
前端·javascript
Kjjia12 分钟前
将内容明文存储在indexDB后,被指着鼻子骂道赶紧把数据隐藏...
前端·安全
本郡主是喵13 分钟前
并发编程 - go版
java·服务器·开发语言
冷凌爱18 分钟前
总结HTML中的文本标签
前端·笔记·html
小李小李不讲道理35 分钟前
「Ant Design 组件库探索」二:Button组件
前端·react.js·ant design