【报错】无法找到模块“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删除

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

最近更新

  1. TCP协议是安全的吗?

    2024-06-12 18:00:05       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-06-12 18:00:05       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-06-12 18:00:05       18 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-06-12 18:00:05       20 阅读

热门阅读

  1. 非递归式实现快速排序

    2024-06-12 18:00:05       6 阅读
  2. ######## redis各章节终篇索引(更新中) ############

    2024-06-12 18:00:05       8 阅读
  3. chrome 您的连接不是私密连接

    2024-06-12 18:00:05       7 阅读
  4. VS Code1.90发布,VS Code speech与AI结合太强了

    2024-06-12 18:00:05       6 阅读
  5. Python自学入门:全面解析与实战指南

    2024-06-12 18:00:05       8 阅读