Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

vue-router 4.2.0 breaks vue-tsc #3178

Closed
jfrs opened this issue May 12, 2023 · 2 comments
Closed

vue-router 4.2.0 breaks vue-tsc #3178

jfrs opened this issue May 12, 2023 · 2 comments

Comments

@jfrs
Copy link

jfrs commented May 12, 2023

I have project with vue 3.3.1, vue-router 4.1.6, vuetify 3.2.4 and vue-tsc 1.6.4 (same with 1.7.1).

When I upgrade vue-router to 4.2.0, all the vuetify components errors with Property 'VBtn' does not exist on type 'Pick<IntrinsicElements, "div"> & Pick<{ $: ComponentInternalInstance; $data: {}; $props: { key?: string | number | symbol | undefined; ... 18 more ...; "onUpdate:sessionClip"?: ((sessionClip: SessionClipRequest | null) => any) | undefined; }; ... 10 more ...; $watch<T extends string | ((...args: any) => any)>(source...'.

I don't think it's a vuetify issue, but I'm not sure how to check what's happening here.

@kingyue737
Copy link
Contributor

Reproduction: https://stackblitz.com/edit/vitejs-vite-iefwye

vue-router v4.2.0 augments ComponentCustomOptions via declaring vue while I (or other libraries) augment this interface with @vue/runtime-core. Then this error happens.

@jfrs
Copy link
Author

jfrs commented May 19, 2023

Fixed in vuejs/router@b8d417a for now

@jfrs jfrs closed this as completed May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants