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

Created on 1 Dec 2017  路  2Comments  路  Source: microsoft/TypeScript

package.json:

"devDependencies": {
    "@types/lodash": "^4.14.86",
    "css-loader": "^0.28.7",
    "mint-ui": "^2.2.12",
    "ts-loader": "^3.2.0",
    "typescript": "^2.6.2",
    "vue-loader": "^13.5.0",
    "vue-template-compiler": "^2.2.1",
    "webpack": "^3.9.1"
  },
  "dependencies": {
    "@types/lodash": "^4.14.86",
    "vue": "^2.5.9",
    "vue-class-component": "^6.0.0",
    "vue-property-decorator": "^6.0.0"
  }

then error

TS1238: Unable to resolve signature of class decorator when called as an expression.
  Type '<VC extends VueClass<{}>>(target: VC) => VC' is not assignable to type 'typeof HelloDecorator'.
    Property 'extend' is missing in type '<VC extends VueClass<{}>>(target: VC) => VC'.
Needs More Info

All 2 comments

You might have better luck sharing this on StackOverflow. This is not a support forum, it is one for reporting compiler/language bugs and suggestions.
If you believe you are running into a compiler bug, please share a minimal repro project that demonstrates the issue you are running into and why you believe this is a compiler bug and not a declaration file issue or library usage problem.

Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

remojansen picture remojansen  路  3Comments

weswigham picture weswigham  路  3Comments

bgrieder picture bgrieder  路  3Comments

jbondc picture jbondc  路  3Comments

Antony-Jones picture Antony-Jones  路  3Comments