2.2.6 reports null
errors with v-model erroneously
#5226
Labels
good reproduction ✨
This issue provides a good reproduction, we will be able to investigate it first
🔨 p3-minor-bug
Uh oh!
There was an error while loading. Please reload this page.
Vue - Official extension or vue-tsc version
vue-tsc 2.2.6
VSCode version
1.97.2
Vue version
3.5.13
TypeScript version
5.8.2
System Info
package.json dependencies
Steps to reproduce
Clone https://github.com/Cherry/vue-tsc-null-repro and run
npm test
OR:
another-component.vue
):example.vue
:<inputExample v-model="example.foo.name" />
line:What is expected?
No errors should occur as the null-ness of this was checked above in the
v-if
on a parent element.What is actually happening?
Type errors such as
src/example.vue:20:26 - error TS18047: '__VLS_ctx.example.foo' is possibly 'null'.
are thrown.Link to minimal reproduction
https://github.com/Cherry/vue-tsc-null-repro
Any additional comments?
I suspect this was introduced in #5214
The text was updated successfully, but these errors were encountered: