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

  

posted @ 2018-12-08 11:27  liliyou  阅读(1632)  评论(0编辑  收藏  举报