-
-
Notifications
You must be signed in to change notification settings - Fork 594
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
"Go to definition" doesn't work in .vue files #707
Comments
We don't support omitting |
@HerringtonDarkholme Oh.. you should've told me all I had to do was add the |
Sorry for being jumpy, but your filename https://github.com/ffxsam/no-goto/blob/master/src/components/NoWork.vue indicates you have realized the problem in that You can install path intellisense in vscode. Its behavior doesn't make sense to me since it skip |
@HerringtonDarkholme Path Intellisense doesn't work with .vue files and appears to be abandonware. Do you know of any other extensions that will do path autocompletion for Vue files? |
I have the same problem, except I can't even go to the def of a function within the same .vue file! |
Why is this closed? I can't go to the definition even if I add the extension. Is this working for others? It works fine with JSX and react files. |
Please provide a reproduction code repository if you meet a problem. |
@HerringtonDarkholme here's a real life snippet from real vue code that exhibits this problem: I:
When I right click on any of my Is this just not something Vetur is willing to support? |
News? |
I got this too. Directory structure: app.js
components/ArticleList.vue I cannot import ArticleList from './components/ArticleList' |
I had this problem even when using the
|
Need to add <script lang="ts"> to your .vue file. And config webpack and like this: last step is add vue-shims.d.ts at /src/ to let typescript know what is .vue file. this work for me. |
News? |
I had the same problem described by @KorvinSzanto in my vue files: "No definition found" Analizing a generated vue-cli project, I did 2 things: Add @vue/cli-plugin-babel in my devDependencies: Create a file: babel.config.js Doing these 2 things, I could use propertly "Go to definition" inside my vue files. |
VSCode is just an editor which is not ready for productivity. |
News? Upgrade or downgrade different version. |
news?
I have exactly the same problem |
The Vue Peek extension works for me. |
News? |
Any news? |
Waiting too!(( |
News? |
2 similar comments
News? |
News? |
Any update? |
https://youtu.be/wJQykqGl2xs follow this |
for users who prefer texts:
|
Hello everyone, This problem has many parts.
Continue to leave comments here is not very helpful to everyone. |
Info
Problem
Cmd-clicking (or F12) on a Vue component
import
statement has no effect. It's impossible to jump to the file being clicked on.Reproducible Case
https://github.com/ffxsam/no-goto
The text was updated successfully, but these errors were encountered: