-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
There are no IntelliSense for Components props in VSCode #6013
Comments
I try to use |
Maybe it is monorepo dependencies issue. before i installed vue in root project as dependencies and every child project as dev and peer dependency, then I delete all vue dependencies in child project, and just installed it on root project, the component prop intellisense is work! |
我解决的步骤是 重新创建一个新项目,然后开启自动导入,发现新项目是 OK 的,然后在老项目中找是不是哪里出问题了,如果用的 vite,在 vite 中配置自动导入后,记得在 tsconfig 中引入 components.d.ts English Version: If you use nuxt, nuxt has modules that disable dts generation, you can switch to �node_modules to enable dts. Then use [patch - package] (https://www.npmjs.com/package/patch-package) to create a patch, after nuxt. Config. Ts include the corresponding files: I hope this will be helpful to those who encounter this problem |
@kingshuaishuai 非常感谢你的帮助,但我这里新建一个项目,然后引入 primeVue 都无法获得正确的类型提示 |
|
这些是有的,我现在也是你这么个用法,但还是希望能够得到完整的类型提示,能够有类型报错
|
Describe the bug
Problems
When the mouse points to the component, the component type is indicated.
But, There's no intellisense when I type in props.
My Custom Components is normal. And It's type is Wrapped By
__VLS_WithDefaults<__VLS_TypePropsToOption<>>
, I can get intellisense for it.Reproducer
https://stackblitz.com/edit/primevue-4-ts-vite-issue-template-s6kabt?file=src%2FApp.vue
PrimeVue version
4.0
Vue version
^3.4.21
Language
TypeScript
Build / Runtime
Vite
Browser(s)
No response
Steps to reproduce the behavior
No response
Expected behavior
No response
The text was updated successfully, but these errors were encountered: