Closed wjw020206 closed 8 months ago
Please do not close this question. My project is running normally, so I cannot provide a test project. For me, I still cannot jump when I create a new project.
The problem is solved. It is a problem with the Vue Language Features (Volar) plug-in version. Version 1.8.22 has a BUG and cannot display the type of custom components. Just reduce the version to 1.8.11.
@wjw020206 Can you provide a link to the issue describing the bug?
你能提供描述错误的问题的链接吗?
Yes, I also had the same problem, the problem has been solved after demotion, thank you @wjw020206
Describe the bug
For the same project, I can use ctrl+click to jump to the corresponding
.vue
file through the custom component name in Windows 10. However, I cannot use command+click to jump in MacOS. I have tried reinstalling VScode and Open other projects and the problem still exists.I useunplugin-vue-components
to automatically import components.components.d.ts is generated.The project can run normally.The display type is displayed when running under the windows version. However, the type of the custom component in mac displays any.TS or JS function methods and native tags such as
div
can be jumped, but custom components cannot be jumped, such asel-button
.Windows:![image](https://github.com/unplugin/unplugin-vue-components/assets/59106659/79035a82-0014-463e-bd83-f14ad826942e)
MacOS:
what i expected: Use command + click on MacOS to jump to the
.vue
file of the corresponding custom componentSystem Info
Used Package Manager
pnpm
Validations