Skip to content

"vue-tsc" fails with "error TS2769: No overload matches this call" in "strict" mode #1973

Closed
@tinobino

Description

@tinobino

Describe the bug
vue-tsc fails with "error TS2769: No overload matches this call" in when "strict" mode is configured in "tsconfig.json".

If the defineEmits part in the component is removed vue-tsc doesn't complain. Seems that this issue is somehow related with Vue version 3.2.46.

To Reproduce
https://stackblitz.com/edit/vitest-dev-vitest-nwzj9x?file=components%2FSlotComponent.vue,test%2FSlotComponent.test.ts,package.json&initialPath=__vitest

Expected behavior
vue-tsc does not fail for the example given.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions