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

IntelliSense shows wrong vue module when type ref #3266

Open
4 tasks done
ytliuSVN opened this issue Dec 4, 2021 · 2 comments
Open
4 tasks done

IntelliSense shows wrong vue module when type ref #3266

ytliuSVN opened this issue Dec 4, 2021 · 2 comments

Comments

@ytliuSVN
Copy link

ytliuSVN commented Dec 4, 2021

  • 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: macOS Big Sur 11.6
  • Vetur version: 0.35.0
  • VS Code version: 1.62.3

Problem

When I type ref, the IntelliSense will auto imports @vue/reactivity instead of vue.
In normal case, it should be import { ref } from 'vue'

Reproducible Case

import-ref

@Dhalsimzhao
Copy link

same issue with "vue-demi"

@MohammadYounes
Copy link

I'm having the same issue. Is there a way around this ?

Using this (https://eslint.vuejs.org/rules/prefer-import-from-vue.html#vue-prefer-import-from-vue) would maintain consistent vue imports. However it will be much better to have them auto-completed under vue instead of @vue/*

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

No branches or pull requests

4 participants