Yuyz0112/vue-type-check

"Object is possibly null" even inside v-if check.

Closed this issue · 2 comments

<div v-if="foo !== null">
    {{ foo.content }}
</div>
274:11 Object is possibly 'null'.
  272 |       <div>
> 274 |         {{ foo.content }}
      |            ^^^^^^^
  275 |       </div>
  276 |     </template>

Vetur doesn't complain about this. I don't really know what to do about it.

Appears to be an upstream bug: vuejs/vetur#1635 (comment)

Hi @subdavis, did you manage to fix this? I am having the same problem