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
Volar v1.0.10 recognize RouterLink component type as never #2157
Comments
Maybe you need to upgrade vue-tsc to the same version. |
@imaverickk I upgraded |
What is the |
Everything works fine for me, in v1.0.9 and v 1.0.10 the type of RouterLink is |
@hongquan Can you provide a reproduction demo? |
@xiaoxiangmoe I will try tomorrow (not sure if a small demo can reproduce it, or the issue depends on something in my project). |
Hi, I copied part of my project to provide a reproduction demo: https://bitbucket.org/hongquan/vue-tsc-router/src/main/ |
Same issue here, in fact it happens on all global components, despite a declaration file like explained in documentation : // For vue 2.7
declare module 'vue' {
export interface GlobalComponents {
RouterLink: typeof import('vue-router')['RouterLink']
RouterView: typeof import('vue-router')['RouterView']
// ...
// + my own global components
// ...
}
}
export {}; |
After upgrading to v1.0.10, Volar now recognizes
RouterLink
,RouterView
components asnever
type:The text was updated successfully, but these errors were encountered: