Vue-class-component: v7.2.0 issue: Argument of type 'xxx' is not assignable to parameter of type 'Vue'.

Created on 11 Jan 2020  路  2Comments  路  Source: vuejs/vue-class-component

I upgrade the version to 7.2.0 after, some vue file will report error about:

Argument of type 'xxx' is not assignable to parameter of type 'Vue'.

or

Argument of type 'typeof xxx' is not assignable to parameter of type 'VueClass'.
Type 'typeof xxx' is not assignable to type 'new (...args: any[]) => Vue'.
Type 'xxx' is not assignable to type 'Vue'.
Types of property 'data' are incompatible.
Type 'Ixxx' is not assignable to type '() => object'.
Type 'Ixxx' provides no match for the signature '(): object'.

as shown below:

image

Most helpful comment

I don't know is my code problem?

And my solution is downgrade to 7.1.0 is ok.

So I hope the upgrade can compatible with old version.

All 2 comments

I don't know is my code problem?

And my solution is downgrade to 7.1.0 is ok.

So I hope the upgrade can compatible with old version.

Why is this closed? The downgrading is not a solution.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

micobarac picture micobarac  路  6Comments

tonypee picture tonypee  路  6Comments

kabaluyot picture kabaluyot  路  3Comments

nqthiep picture nqthiep  路  6Comments

viT-1 picture viT-1  路  4Comments