You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right click the Router import and select Go to Definition
Notice how there is an error in the definition of the type Component type
What is expected?
No errors with Vue 2.6
What is actually happening?
Error Generic type 'Component' requires between 0 and 4 type arguments.
Component has different amount of generic arguments in Vue 2.7 compared to Vue 2.6 so this code is not compatible with Vue 2.6. Since vue-router passes 5 arguments, this triggers a typescript error if strict option in tsconfig is enabled.
The text was updated successfully, but these errors were encountered:
Version
3.6.4
Reproduction link
codesandbox.io
Steps to reproduce
/src/main.js
Router
import and selectGo to Definition
type Component
typeWhat is expected?
No errors with Vue 2.6
What is actually happening?
Error
Generic type 'Component' requires between 0 and 4 type arguments.
Component
has different amount of generic arguments in Vue 2.7 compared to Vue 2.6 so this code is not compatible with Vue 2.6. Since vue-router passes 5 arguments, this triggers a typescript error ifstrict
option in tsconfig is enabled.The text was updated successfully, but these errors were encountered: