单元测试一个组件,我必须导入一个mixin(vue howler)
import VueHowler from "vue-howler";
我收到一个关于进口的警告。。。
[ts]
Could not find a declaration file for module 'vue-howler'. '/Users/yves/Developments/WIP/VUE.JS-cli-3/3-chocha-home-content/chocha/node_modules/vue-howler/dist/vue-howler.common.js' implicitly has an 'any' type.
Try `npm install @types/vue-howler` if it exists or add a new declaration (.d.ts) file containing `declare module 'vue-howler';`
如何解决此警告?没有@types/vue howler)?
这是相关的包.json埃斯林特区块
package.json
....
"eslintConfig": {
"root": true,
"env": {
"node": true
},
"extends": [
"plugin:vue/essential",
"@vue/prettier"
],
"rules": {
"no-console": 0
},
"parserOptions": {
"parser": "babel-eslint"
}
},
....
感谢您的反馈