Skip to content

Component Event causing error ts(2304) "Cannot find name 'propName'" #3103

@webdevnerdstuff

Description

@webdevnerdstuff

Environment:
OS: OSX 13.3.1 (22E261)
Vue Language Features (Volar) Version: v1.6.2
TypeScript Vue Plugin (Volar) Version: v1.6.2

In v1.6.1 the following did not throw any errors

<v-data-table
    :headers="headers"
    :items="items"
    @update:model-value="updateModelValue"
  >

items is giving the error Cannot find name 'items'.ts(2304). If I remove @update the error goes away. The example I gave is a simplified version of what I actually have. I have a lot of props on the component, and they all have the same error. Same results is that removing @update makes the error go away.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions