Skip to content

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

@shiyafei

Description

@shiyafei

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'.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Needs More InfoThe issue still hasn't been fully clarified

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions