Vue+typescript报错项
Posted mlh1421
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Vue+typescript报错项相关的知识,希望对你有一定的参考价值。
39:1 Unable to resolve signature of class decorator when called as an expression. Type ‘<VC extends VueClass<Vue>>(target: VC) => VC‘ is missing the following properties from type ‘typeof HelloWorld‘: extend, nextTick, set, delete, and 7 more. 37 | import { Component, Prop, Vue } from ‘vue-property-decorator‘; 38 | > 39 | @Component | ^ 40 | export default class HelloWorld extends Vue { 41 | @Prop() private msg!: string; 42 | } No lint errors found
处理方案 :配置tsconfig.json
"strictFunctionTypes": false
以上是关于Vue+typescript报错项的主要内容,如果未能解决你的问题,请参考以下文章
Vue报错:Uncaught TypeError: Cannot assign to read only property 'exports' of object 的解决方法(代码片段
vue element-ui typescript tree报错 === Property 'getCheckedNodes' does not exist on type '