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

Latest @vue/language-tools (vue-tsc) finds TS errors in NuxtImg.vue #1703

Open
fabis94 opened this issue Feb 19, 2025 · 0 comments · May be fixed by #1704
Open

Latest @vue/language-tools (vue-tsc) finds TS errors in NuxtImg.vue #1703

fabis94 opened this issue Feb 19, 2025 · 0 comments · May be fixed by #1704

Comments

@fabis94
Copy link

fabis94 commented Feb 19, 2025

Image

It's not entirely clear to me why this happens, but the solution is to do:

const attrs: SetupContext['attrs'] = useAttrs()

Its the same issue that happens when using useSlots:
vuejs/language-tools#5082 (comment)
vuejs/language-tools#5116

For useAttrs:
vuejs/language-tools#5183

vue-tsc: 2.2.2
typescript: 5.7.3

@tjbp tjbp linked a pull request Feb 19, 2025 that will close this issue
6 tasks
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

Successfully merging a pull request may close this issue.

1 participant