Subscribe on changes!

vue3.x TS Mixin method not found

avatar
May 23rd 2022

Vue version

3.2

Link to minimal reproduction

https://github.com/

Steps to reproduce

app.use(Antd).use(router) .mixin({ methods: { updateCurrentUUID () { } } }) .mount('#app')

export default defineComponent({ initComponentData () { /* 报错 Property 'updateCurrentUUID' does not exist on type 'CreateComponentPublicInstance<Readonly<ExtractPropTypes<{ DefineInfo: { type: PropType; }; }>> & { [x: string & on${string}]: undefined; }, ... 16 more ..., {}>'.Vetur(2339) */ this.updateCurrentUUID() }, })

What is expected?

What is actually happening?

System Info

No response

Any additional comments?

No response