-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Description
Reproduction
https://stackblitz.com/edit/vitejs-vite-fmmdned7?file=src%2Fcomponents%2FHelloWorld.vue
Steps to reproduce the bug
Try to extend vue-router RouterLinkProps
Expected behavior
Should work as in 4.6.4 https://stackblitz.com/edit/vitejs-vite-o1wkphar?file=src%2Fcomponents%2FHelloWorld.vue
Actual behavior
[@vue/compiler-sfc] Failed to resolve extends base type.
If this previously worked in 3.2, you can instruct the compiler to ignore this extend by adding /* @vue-ignore */ before it, for example:
interface Props extends /* @vue-ignore */ Base {}
Note: both in 3.2 or with the ignore, the properties in the base type are treated as fallthrough attrs at runtime.
/Users/lubomirblazek/Documents/GitHub/bookoloengine-fe/src/components/(ui)/button/Button.vue
6 | type sizes = 'xs' | 'sm' | 'md' | 'lg'
7 |
8 | interface Props extends Omit<RouterLinkProps, 'to'> {
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^
9 | to?: RouteLocationRaw
10 | as?: string
Additional information
No response