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

   Cannot find module 'element-plus/es/popper' or its corresponding type declarations.

在这里插入图片描述

出现这个报错的时候,我惊呆了。。。报的竟然是element内部的错!

解决方法:
在tsconfig.json文件,compilerOptions里加入 “skipLibCheck”: true,
意思为:跳过检查库的代码
在这里插入图片描述

Logo

Vue社区为您提供最前沿的新闻资讯和知识内容

更多推荐