microsoft / TypeScript-Vue-Starter

A starter template for TypeScript and Vue with a detailed README describing how to use the two together.
MIT License
4.45k stars 591 forks source link

Got error on HelloComponent.vue #79

Open kueiapp opened 5 years ago

kueiapp commented 5 years ago

Got the error message when building with webpack. However, it still can run perfectly.

error TS2345: Argument of type 'typeof HelloDecorator' is not assignable to parameter of type 'VueClass<Vue>'.
  Type 'typeof HelloDecorator' is not assignable to type 'new (...args: any[]) => Vue'.
    Type 'HelloDecorator' is not assignable to type 'Vue'.
      Types of property '$options' are incompatible.
        Type 'ComponentOptions<HelloDecorator, DefaultData<HelloDecorator>, DefaultMethods<HelloDecorator>, Def...' is not assignable to type 'ComponentOptions<Vue, DefaultData<Vue>, DefaultMethods<Vue>, DefaultComputed, PropsDefinition<Rec...'.
          Type 'HelloDecorator' is not assignable to type 'Vue'.