首页 > 其他 > 详细

Vue+typescript报错项

时间:2018-12-08 12:38:31      阅读:453      评论:0      收藏:0      [点我收藏+]
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报错项

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

(1)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!