Open wlchn opened 1 year ago
Vetur: Restart VLS
highlight error when use typeof in v-if
wrong case:
<template> <div> <div v-if="typeof foo === 'number'">demo text</div> </div> </template> <script> export default { data() { return { foo: '', } }, } </script>
right cases:
Had the same issue, turns out, the guilty was Vue Syntax Highlight by rahul Kadyan (https://marketplace.visualstudio.com/items?itemName=znck.vue-language-features)
Vetur: Restart VLS
Info
Problem
highlight error when use typeof in v-if
Reproducible Case
wrong case:
right cases: