Unable to resolve signature of class decorator when called as an expression.

See original GitHub issue

Am getting this error buts once call super() it goes off but I can’t find it in the doc that one has to called the super method

Unable to resolve signature of class decorator when called as an expression.
  Type '<VC extends VueClass<Vue>>(target: VC) => VC' is not assignable to type 'typeof AkChatMessages'.
    Property 'extend' is missing in type '<VC extends VueClass<Vue>>(target: VC) => VC'

screenshot from 2018-12-07 09-13-29

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

4reactions
lgarczyncommented, Feb 17, 2021

This error comes up with vue 3, to reduce the error to a warning you can do:

Change your shim according to this: https://github.com/vuejs/vue-next/issues/1072

Change your declaration to this:

import { Vue } from 'vue-class-component';
import { Prop } from 'vue-property-decorator';

export default class BaseComponent extends Vue {
  @Prop({ default: '' })
  msg!: string;
}
3reactions
sanjeevkpanditcommented, Dec 9, 2018

The issue still persists with vue: 2.5.18 and typescript: 3.2.2.

Read more comments on GitHub >

github_iconTop Results From Across the Web

TypeScript decorator reports "Unable to resolve signature ...
TypeScript decorator reports "Unable to resolve signature of class decorator when called as an expression" ; also make sure you call @Input() with...
Read more >
How To Use Decorators in TypeScript
Unable to resolve signature of class decorator when called as an expression. Type '(target: Function) => void' is not assignable to type ...
Read more >
TypeScript decorator reports “Unable to resolve signature ...
When compile, it reports: decorator.ts(1,1): error TS1238: Unable to resolve signature of class decorator when called as an expression. Type '(msg ...
Read more >
Microsoft/TypeScript
Unable to resolve signature of property decorator when called as an expression. This is confusing, I'm not calling the decorator as an expression....
Read more >
Unable to resolve signature of class decorator when called ...
编译的时候报错,怎么解决呢? Failed to compile. ... TS1238: Unable to resolve signature of class decorator when called as an expression. This ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found