-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
VSCode IntelliSense suggestions pop up as I type 'reactive', but 'reactive' not in the list. #9235
Comments
@zhouyou-az Wouldn't this be more appropriate in the discussions on the Vue repo? |
IntelliSense works as soon as I have copied .d.ts files from node_modules/@VUE floder to src floder. |
@zhouyou-az It depends on your editor and any plugins you might be using that look for typings... |
I'm facing this issue from a long time, the import intellisense works perfectly fine with a normal vue 2/3 project (generated from vue cli or vite CLI or custom) when I type some API function but it doesn't work in quasar projects. I have to explicitly import it. I'm not sure if you understood the question @hawkeye64 CC @yusufkandemir . Thanks |
We're actually aware of the problem, TS recently started ignoring symbols from transitional dependencies, on which Quasar heavily relies on, and didn't provide any escape hatch |
Thanks for this update. |
Hii @IlCallo , the intellisense somehow worked today, but the catch is it only works when there is an import from vue already. But again this is not perfect. Here I have an existing import for |
Well, yesterday VSCode stopped doing auto-imports from lodash package in my projects, so I guess the problem is only partially related to Quasar 😄 |
Will read more into it |
Is it possible to add vue as a dependency explicitly ? I did it and the types are working as expected. But is it ok to add vue as dependency even though it's inside quasar ? |
Read up here why we cannot do this, at least for Qv2 lifecycle That said, for sure you can install it on your project, but then you'd need to keep it in sync manually at each Vue/Quasar release, that's why we are searching for other ways to solve this problem which don't rely on adding all deps into the dev project package.json |
yes yes, got your point, keeping it synced manually is a tedious task. Also I don't think vue 3 has a @types/vue-next ts declarations package like vue 2, right ? |
Nope... Which is good, but bad in this case |
I'm also unsure. |
@IlCallo This is a workaround for now I think, and IMO this will solve the TS import issue without any hard work from you guys what do you think ? https://github.com/antfu/unplugin-auto-import check the quasar section |
I'm honestly impressed by that package, but I don't think it's a good idea to enforce it to the whole community |
Sorry I din't mean it that way, I suggested that it's a good workaround for now, till we we find something more reliable and less hack-ish. |
Under the hood change in q/app v3.3 will make this work correctly. |
Describe the bug
I want to quickly import reactive or other function from vue.
Although d.ts files in .node_modules/@VUE floder can't trigger code completion , d.ts files in .node_modules/quasar/dist/types floder can trigger code completion.
OS:win10
Node:14.16.1
NPM:6.14.12
Yarn: 1.22.10
Browsers:Chrome
The text was updated successfully, but these errors were encountered: