Could not find a declaration file for module 'vue |
您所在的位置:网站首页 › vue-content-loader › Could not find a declaration file for module 'vue |
我尝试添加到项目中的任何第三方Vue.js库都会引发以下错误: Could not find a declaration file for module 'vue-xxx'. Could not find a declaration file for module 'vue-qriously'.
原因是 : ‘vue-xxx’文件可能不是.ts文件而是.js文件
解决方法1、: `npm install @types/vue-xxx`
执行之后报错:
解决方法2、: 找到shims-vue-d.ts文件
加上这样一行代码:
就可以在项目中引用了:
|
CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3 |