In our yarn multi workspace project we get a very strange typescript build exception with the latest version of vue:
TS2345: Argument of type 'Router' is not assignable to parameter of type 'Plugin_2'.
Type 'Router' is not assignable to type '{ install: PluginInstallFunction; }'.
Types of property 'install' are incompatible.
Type '(app: App<any>) => void' is not assignable to type 'PluginInstallFunction'.
Types of parameters 'app' and 'app' are incompatible.
Type 'import("/node_modules/@vue/runtime-core/dist/runtime-core").App<any>' is not assignable to type 'import("/node_modules/@vue/runtime-core/dist/runtime-core").App<any>'.
To me it does look, like they are identicall...
The relevant parts of the package.json:
{
"dependencies": {
"vue": "^3.2.31",
"vue-router": "4.0.12",
"@typescript-eslint/eslint-plugin": "^4.18.0",
"@typescript-eslint/parser": "^4.18.0",
"ts-node": "^8.10.2",
"typescript": "~4.1.5"
}
}
Anybody had this before and knows maybe how to fix it without going through the lengthy process of opening vue core tickets?