Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

highlight error when use typeof in v-if #3679

Open
4 tasks done
wlchn opened this issue Mar 23, 2023 · 1 comment
Open
4 tasks done

highlight error when use typeof in v-if #3679

wlchn opened this issue Mar 23, 2023 · 1 comment

Comments

@wlchn
Copy link

wlchn commented Mar 23, 2023

  • I have searched through existing issues
  • I have read through docs
  • I have read FAQ
  • I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform:
    Version: 1.76.2 (Universal)
    Commit: ee2b180d582a7f601fa6ecfdad8d9fd269ab1884
    Date: 2023-03-14T17:54:09.061Z
    Electron: 19.1.11
    Chromium: 102.0.5005.196
    Node.js: 16.14.2
    V8: 10.2.154.26-electron.0
    OS: Darwin x64 21.6.0
    Sandboxed: No

Problem

highlight error when use typeof in v-if

Reproducible Case

wrong case:
image

<template>
  <div>
    <div v-if="typeof foo === 'number'">demo text</div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      foo: '',
    }
  },
}
</script>

right cases:
image
image

@andretf
Copy link

andretf commented Aug 30, 2023

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants