Skip to content

False positive property typecheck issue in templates #322

@innocenzi

Description

@innocenzi

Since Vue 3.2.33.1.3 (works properly with 3.2.23.1.2, not with 3.2.33.1.3 onward), I have that typecheck issue:

That show property is defined in a the modal component in <script setup lang="ts">:

defineProps({ show: Boolean })

I'm also using vite-plugin-components which generates a components.d.ts file with the following:

// generated by vite-plugin-components
// read more https://github.com/vuejs/vue-next/pull/3399

declare module 'vue' {
  export interface GlobalComponents {
    // ...
    Modal: typeof import('./src/components/Modal.vue')['default']
    // ...
  }
}

export { }

I'm running Volar 0.26.6.

Maybe related to your PR? vuejs/core@81e69b2

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions