Closed
Description
Version
3.6.4
Reproduction link
Steps to reproduce
- Go to
/src/main.js
- Right click the
Router
import and selectGo 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.
Metadata
Metadata
Assignees
Labels
No labels