vuejs / vue-class-component

ES / TypeScript decorator for class-style Vue components.
MIT License
5.81k stars 429 forks source link

[vue3] use mixins, the IDE show me this #581

Open taixingyiji opened 2 years ago

taixingyiji commented 2 years ago

environment:

"vue": "^3.2.24",
"vue-class-component": "^8.0.0-0",

code:


@Options({
  name: "Common"
})
export default class Common extends Vue {
 ...
}
@Options({
  name: "atmo",
  components: {
    searchKeyCo
  }
})
export default class Welcome extends mixins(Common) {
....
}

questions:

compile and runtime is ok,but the IDE show me like this,how to fix?

image

Mr-Li-Fei commented 1 year ago

hi, how do you fix it? i use mixins as you do, but it has the error on the browser that Uncaught (in promise) TypeError: Cannot read property 'props' of undefined at normalizePropsOptions (VM115 vue.global.js:5558) image