Skip to content

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

@brc-dd

Description

@brc-dd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood reproduction ✨This issue provides a good reproduction, we will be able to investigate it first

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions