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

报错:

无法找到模块"element-plus/es/locale/index.mjs"的声明文件。"E:/codeAll/work/test1/test2/HealinLikeMe-ui/node_modules/.pnpm/element-plus@2.7.3_vue@3.4.27_typescript@5.4.5_/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删除

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

相关推荐
Dem11 分钟前
怎么安装jdk
java·开发语言
wazmlp0018873694 分钟前
python第一次作业
开发语言·python·算法
墨雪不会编程5 分钟前
C++【string篇4】string结尾篇——字符编码表、乱码的来源及深浅拷贝
android·开发语言·c++
咸鱼2.010 分钟前
【java入门到放弃】VUE部分知识点
java·javascript·vue.js
Engineer-Jsp11 分钟前
A problem occurred starting process ‘command ‘bash‘‘
开发语言·bash
weixin_4896900216 分钟前
MicroSIP自定义web拨打协议
服务器·前端·windows
PnZh0Y118 分钟前
python代码练习1
开发语言·python·算法
sheji341619 分钟前
【开题答辩全过程】以 基于python的图书销售数据可视化系统为例,包含答辩的问题和答案
开发语言·python·信息可视化
_Soy_Milk20 分钟前
【算法工程师】—— Python 高级
开发语言·python·算法
程序猿Code21 分钟前
groovy闭包
开发语言·python