-
-
Notifications
You must be signed in to change notification settings - Fork 439
Index signature for type 'string' is missing in type 'GlobalComponents' #5161
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
Comments
It has been fixed by the recent commits. |
Ok, great, when is this fix going to be released? |
I'm still getting his using 2.2.2 of vue-tsc. This happens to me when I include a custom component library into a vue project (same vue-tsc version) |
@KazariEX the bug still exists. I just got it in the |
Can v3.0.0 (#5261) solve this problem? |
@KazariEX |
Vue - Official extension or vue-tsc version
vue-tsc: 2.2.0
VSCode version
N/A
Vue version
3.5.13
TypeScript version
5.7.3
System Info
N/A
package.json dependencies
See minimal reproduction
Steps to reproduce
npm run build
in the terminal (if you getEIO: i/o error, write
error, just ignore and proceed to next step)npx vue-tsc --noEmit dist/types/App.vue.d.ts
After last step you hopefully get the error:
What is expected?
I expect
CreateComponentPublicInstanceWithMixins
to be able to acceptGlobalComponents
as one of its type arguments (I guess...).What is actually happening?
I don't know. In the minimal reproduction I have:
BaseInput.vue
)ExtendedInput.vue
)App.vue
) where I use the extended component with a ref attribute. I also use a slot in theApp.vue
. Note: If I don't provide a slot inApp.vue
, "GlobalComponents" in the generated d.ts file doesn't seem to be problematic"myInput" in generated
App.vue.d.ts
has the typeCreateComponentPublicInstanceWithMixins
withGlobalComponents
as one of its type arguments.Link to minimal reproduction
https://stackblitz.com/edit/vitejs-vite-7p6yratb?file=src%2FApp.vue&view=editor
Any additional comments?
The problem doesn't exist in 3.5.0-beta.3. Starts appearing in 3.5.0-rc.1 and 3.5.0.
This commit seems suspicious: vuejs/core@42e8df6
What problem did it solve? No tests were added or edited.
The text was updated successfully, but these errors were encountered: