Skip to content

No errors in template with ts-check enabled in Vue >= 3.5.7 #4891

Closed as not planned
@twisterniq

Description

@twisterniq

Vue - Official extension or vue-tsc version

2.1.6

VSCode version

1.93.1

Vue version

3.5.9

TypeScript version

5.5.4

System Info

No response

package.json dependencies

{
  "name": "vuejs-ts-check-template-bug",
  "version": "0.0.0",
  "private": true,
  "type": "module",
  "dependencies": {
    "vue": "3.5.9"
  }
}

Steps to reproduce

  1. Clone the minimal reproduction.
  2. npm install
  3. Check that there are no errors in App.vue.
  4. If you downgrade to Vue 3.5.6 and check again, you will see that setDate has an error.

What is expected?

The errors in <template> should be shown when // @ts-check exists.

image

What is actually happening?

The errors in <template> are not shown when // @ts-check exists.

image

Link to minimal reproduction

https://github.com/twisterniq/vuejs-ts-check-template-bug

Any additional comments?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions