码迷,mamicode.com
首页 > 其他好文 > 详细

Vue+typescript报错项

时间:2018-12-08 13:13:22      阅读:245      评论:0      收藏:0      [点我收藏+]

标签:ssi   when   iss   sig   OWIN   xtend   eof   tar   follow   

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报错项

标签:ssi   when   iss   sig   OWIN   xtend   eof   tar   follow   

原文地址:https://www.cnblogs.com/mlh1421/p/10087081.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!