一、报错提示

vue3+ts项目打包报Elementui内部的错

ERROR in D:/Project/项目名称/node_modules/element-ui/types/index.d.ts(1,15):
1:15 Cannot find module './element-ui' or its corresponding type declarations.> 1 | export * from './element-ui'|               ^2 | 3 | import * as ElementUI from './element-ui'4 | export default ElementUI
ERROR in D:/Project/项目名称/node_modules/element-ui/types/index.d.ts(3,28):
3:28 Cannot find module './element-ui' or its corresponding type declarations.1 | export * from './element-ui'2 | > 3 | import * as ElementUI from './element-ui'|                            ^4 | export default ElementUI5 | 

二、解决方案

在tsconfig.json文件,compilerOptions里加入 “skipLibCheck”: true,
翻译为:跳过检查库的代码。

【异常】解决 Cannot find module ‘./element-ui‘ or its corresponding type declarations.相关推荐

  1. 解决模糊查询问题 element UI 从服务器搜索数据,输入关键字进行查找

    解决模糊查询问题 element UI 从服务器搜索数据,输入关键字进行查找 参考文章: (1)解决模糊查询问题 element UI 从服务器搜索数据,输入关键字进行查找 (2)https://ww ...

  2. webstorm报错:TS2307: Cannot find module ‘./App.vue‘ or its corresponding type declarations

    错误描述 在使用ts后,webstrom报以下错误 TS2307: Cannot find module './App.vue' or its corresponding type declarati ...

  3. 解决Cannot find module ‘./App.vue‘ or its corresponding type declaration 的问题

    报错原因:vite使用的是ts,ts不识别.vue 后缀的文件 具体问题如下:在main.ts中导入App.vue文件报该错误 解决方法:在vite项目的根 vite-env.d.ts 文件中添加下面 ...

  4. element ui table 报错 type check failed for prop “showOverflowTooltip“. Expected Boolean, got Stri

    原因 <el-table-columnprop="warehouseDescribe"label="仓库描述"show-overflow-tooltip= ...

  5. Cannot find module ‘./index.less‘ or its corresponding type declarations

    现象 原因分析 这个错误只和typescript有关系,是由于ts默认情况下不认识less文件. 解决办法 步骤一 在根目录下创建externals.d.ts文件,并填写入以下内容: declare ...

  6. Cannot find module ‘axios;‘ or its corresponding type declarations.ts(2307)

    问题描述 我在ts文件中导入刚才安装好的axios,报错了,报错信息如下: 解决方法 按下键盘ctrl+shift+p,在弹出的窗口输入 typescript 选择Select TypeScript ...

  7. vue3.0 结合element ui 开发后台ui框架

    vue3.0 结合element ui 开发后台ui框架,根据element ui 官网步骤安装出现报错信息,解决方法: 按照element UI官网步骤, 启动vue 3.0项目:npm run s ...

  8. 【VSCode - Vetur 插件报错】Cannot find module ‘XXX‘ or its corresponding type declarations.Vetur(2307)

    Cannot find module '@/utils/request' or its corresponding type declarations.Vetur... 原因分析 解决方案 原因分析 ...

  9. element UI 对话框编辑取消事件,当前行会清空或者替换掉bug解决

    问题:如题element UI 对话框编辑取消事件,当前行会清空或者被替换掉,table表格里的编辑按钮打开对话框,关闭对话框,this.$refs.ruleForm.resetFields()不生效 ...

  10. vue的$nextTick使用总结,this.$refs为undefined的解决办法,element Ui的树形控件setCheckedKeys方法无法使用

    vue的$nextTick使用总结,this.$refs为undefined的解决办法,element Ui的树形控件setCheckedKeys方法无法使用 参考文章: (1)vue的$nextTi ...

最新文章

  1. STL中的nth_element()方法的使用
  2. Xamarin.Forms获取设备屏幕大小
  3. 职场中不可深交的五种人
  4. html按钮控制播放暂停,外部按钮控制video视频的播放暂停
  5. 浏览器打开域名变成localhost_史上最全微信域名防封API原理及实现方案
  6. 小程序如何将wx.request里的数据传出去
  7. HTML+CSS+JS实现 ❤️绘制卡丁车动漫特效❤️
  8. 美团搜索推荐多业务商品排序探索与实践
  9. python多线程_thread使用锁
  10. 21天Jmeter打卡Day19 mysql数据库提取参数化
  11. C++ 11 新特性
  12. Axure使用图标字体
  13. 计算机专业的毕设,计算机专业毕设业计要求.doc
  14. 亿阳信通:结盟微软深化四轮驱动战略
  15. linux rpm 装 mac,linux之 rpm,yum
  16. 日本警方称地震造成3676人死亡7843人下落不明
  17. python模块-win32clipboard-访问windows剪切板-实现复制粘贴
  18. SQL中NVL和NVL2有什么区别,以及NULLIF 的使用
  19. 计算机毕业设计Java抑郁症患者博客交流平台(系统+源码+mysql数据库+Lw文档)
  20. 程序员吃饭段子Java吃完就走_程序员专用段子笑话,笑话死循环

热门文章

  1. 黑客到底有多黑-黑客群体构成,技术起源概述
  2. 3D远方动态白云页面源码
  3. Mysql学习日记:L13-distinct关键字
  4. DOSBox 0.74 汇编 out of memery test.asm(2):out of memory
  5. Webpack中 CDN加速
  6. oracle gbk 转码,oracle编码格式从utf-8转换为GBK
  7. 串口接收完整一帧数据包的3种方法
  8. 晶圆切割机_单轴晶圆划片机特点:
  9. 圣剑传说 玛娜传奇(Legend of Mana)(LOM)AF推荐放置
  10. 『Android开源控件』Banner广告图片轮播控件