We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug/issue
After fresh cloning this template, the type checking for components does not work.
To reproduce:
pnpm
Typescript Vue Plugin (Volar)
Vue Language Features (Volar)
<Counter :initial="{ a: 5 }" />
App.vue
Counter.vue has a prop initial of type number. Here I am passing an object, { a: 5}, but do not get any warning from the editor.
Counter.vue
initial
number
{ a: 5}
As seen in the above image, the editor still recognizes the types of the component.
I'm making this issue in this template because if I create a fresh vue project via pnpm create vue@latest, the type checking works.
pnpm create vue@latest
The text was updated successfully, but these errors were encountered:
After a lot of testing I've found that the html.d.ts is causing this issue:
html.d.ts
declare module '@vue/runtime-core' { interface AllowedComponentProps { [key: string]: any } } export {}
I assume this was added for UnoCSS attributify, but people using this template may not realize the side effects this can cause.
UnoCSS attributify
Sorry, something went wrong.
As vuejs/language-tools#1077 (comment) you can now remove html.d.ts safely.
No branches or pull requests
Describe the bug/issue
After fresh cloning this template, the type checking for components does not work.
To reproduce:
pnpm
Typescript Vue Plugin (Volar)
andVue Language Features (Volar)
<Counter :initial="{ a: 5 }" />
toApp.vue
Counter.vue
has a propinitial
of typenumber
. Here I am passing an object,{ a: 5}
, but do not get any warning from the editor.As seen in the above image, the editor still recognizes the types of the component.
I'm making this issue in this template because if I create a fresh vue project via
pnpm create vue@latest
, the type checking works.The text was updated successfully, but these errors were encountered: