-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Intellisense for vue is broken #46115
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
Comments
But only for Vue 3 please... ?! In Vue 2 it should be export default defineC // intellisense should suggest/prefer `defineComponent` from @vue/composition-api instead of `vue` or `vue-demi` |
What version of Typescript is this? Is this vue 1.60.2? vs code 1.60.2? |
VS Code 1.60.2 Vue is in Version 2.x or 3.x, 1.x is completely outdated. |
// Current, broken behaviour
export default defineC // intellisense will suggest `defineComponent` from @vue/runtime-core Is this example right? Why would we suggest any auto-imports at |
Can anyone try this with typescript@next and see if the problem persists? (https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-next) |
Just tried it with v4.5.20211015 and VS Code is still importing |
@andrewbranch It is working for me with |
Should be fixed by #46437 |
so has the problem been fixed? it is still exists with me |
Bug Report
π Search Terms
intellisense, vue, import
π Version & Regression Information
β― Playground Link
N/A
π» Code
π Actual behavior
TS resolves any Vue export from its submodule, instead of the main
vue
packageπ Expected behavior
TS to resolve from
vue
The text was updated successfully, but these errors were encountered: