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

Showing false _declared but not used_ errors for functions used in v-on="{}" #4333

Closed
brc-dd opened this issue May 1, 2024 · 0 comments
Closed
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first

Comments

@brc-dd
Copy link
Member

brc-dd commented May 1, 2024

Reproduction - https://github.com/brc-dd/volar-false-positive

Run pnpm vue-tsc --noEmit. Working fine till v2.0.14

Currently gives:

Foo.vue:2:10 - error TS6133: 'onItemInteraction' is declared but its value is never read.

2 function onItemInteraction(e: MouseEvent | Event) {}
           ~~~~~~~~~~~~~~~~~


Found 1 error in Foo.vue:2

This is the actual component - https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/components/VPSidebarItem.vue

@brc-dd brc-dd changed the title Showing false declared but not used errors for functions used with v-on="{}" syntax Showing false _declared but not used_ errors for functions used in v-on="{}" May 1, 2024
@johnsoncodehk johnsoncodehk added bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first labels May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good reproduction ✨ This issue provides a good reproduction, we will be able to investigate it first
Projects
None yet
Development

No branches or pull requests

2 participants