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

Auto import components with nested directory cant use go to define on Visual Studio Code #233

Open
vhalegax opened this issue Sep 14, 2021 · 3 comments

Comments

@vhalegax
Copy link

Guys, I am using Nuxt Auto import components with Nuxt 2.15.8,
I have components inside nested directory, like this

Components/
App/
Table.vue

I am calling in a template like this "AppTable />",
but somehow when i click Ctrl + Mouse Hoover in "AppTable />", I can't use Go To define feature on visual studio code.
Does anyone know how to fix this? please help and thanks anyway ^_^

@vhalegax vhalegax reopened this Sep 14, 2021
@Karlitooooo
Copy link

Karlitooooo commented Mar 20, 2023

Any news on that ? i got the same problem

@vhalegax
Copy link
Author

vhalegax commented Mar 20, 2023

Any news on that ? i got the same problem

You can use "Go To Define" with auto import component in nuxt 3

@xxFREESHROUDxx
Copy link

xxFREESHROUDxx commented Nov 21, 2023

I was also having difficulties using "go to definition" but here's thing that you can do to solve it:
This can help with navigating to auto-imported components

  • Make sure Volar extension is active

  • disable @Builtin typescript in extensions tab

  • install this extension on vs code.

Please check if this helped or not as I read this somewhere on the internet and people said that it worked. Although, it didn't worked for me and now I am trying to disable auto imports for components folder.

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

No branches or pull requests

3 participants