Incorrect destructured type seems to be passed to v-for value, throws ts(2339) error #3102
Labels
bug
Something isn't working
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
Environment:
OS: OSX 13.3.1 (22E261)
Vue Language Features (Volar) Version: v1.6.2
TypeScript Vue Plugin (Volar) Version: v1.6.2
in v 1.6.1 the following code works:
items
has its correct type ofItem[] | null
, anditem
has the type ofItem
, no error is thrown.in v1.6.2,
item
is receiving the inferred type ofnever
and throwingProperty '' does not exist on type 'never'. ts(2339)
Workaround
Revert to version 1.6.1 of Vue Language Features (Volar).
The text was updated successfully, but these errors were encountered: