-
-
Notifications
You must be signed in to change notification settings - Fork 527
Labels
good reproduction ✨This issue provides a good reproduction, we will be able to investigate it firstThis issue provides a good reproduction, we will be able to investigate it firstupstream: core
Description
Vue - Official extension or vue-tsc version
2.0.26
VSCode version
1.92.0-insider
Vue version
3.4.31
TypeScript version
5.5.3
System Info
No response
Steps to reproduce
git clone git@github.com:brc-dd/volar-template-key-bug.gitpnpm ipnpm vue-tsc --noEmit
Pasting here for completeness:
<script setup lang="ts"></script>
<template>
<template v-if="true" :key=""></template>
<template v-if="true" :key="{}"></template>
<div v-if="true" :key=""></div>
<div v-if="true" :key="{}"></div>
</template>What is expected?
Error on line 4, 5, 7, 8 of Foo.vue
What is actually happening?
Error is only on line 7, 8.
There should be an error on line 4 saying v-bind is missing expression.
There should be an error on line 5 saying Type '{}' is not assignable to type 'PropertyKey | undefined'.
Link to minimal reproduction
https://github.com/brc-dd/volar-template-key-bug
Any additional comments?
Is it possible to show vue errors when running vue-tsc? They are currently shown only in the editor. (Line 7 in the above example.)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
good reproduction ✨This issue provides a good reproduction, we will be able to investigate it firstThis issue provides a good reproduction, we will be able to investigate it firstupstream: core