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

[VIDEO] Go to Definition in the same .vue file not working #3364

Open
vadimcoder opened this issue Mar 1, 2022 · 3 comments
Open

[VIDEO] Go to Definition in the same .vue file not working #3364

vadimcoder opened this issue Mar 1, 2022 · 3 comments
Labels

Comments

@vadimcoder
Copy link

vadimcoder commented Mar 1, 2022

  • [yes] I have searched through existing issues
  • [yes] I have read through docs
  • [yes] I have read FAQ
  • [yes] I have tried restarting VS Code or running Vetur: Restart VLS

Info

  • Platform: macOS
  • Vetur version: v0.35.0
  • VS Code version: 1.64.2

Panel -> Output -> Vue Language Server -->
Screen Shot 2022-03-01 at 8 09 00 PM

Problem

Go to Definition > No definition found.

<template>
  <div class="hello">
    <h1>{{ msg }}</h1> <!-- msg -> Go to Definition  > No definition found. --!>
  </div>
</template>

<script>
export default {
  props: {
    msg: String
  }
}
</script>

Reproducible Case

The problem is not reproducible on https://github.com/octref/veturpack/generate. But it is reproducible on @vue/cli project:

npm install -g @vue/cli
vue create my-project

screencast 2022-03-01 8 PM-49-25

Video:

I recorded a proof screencast 52 seconds, but Github says it is too big. So I uploaded on youtube: https://www.youtube.com/watch?v=BB_gRYLgHyc

~~
Thanks,
Vadim

Might be similar issues:
#2523
#2341
#3083

P.S.: I will appreciate any help because I don't want to get back to WebStorm!😀

@vadimcoder vadimcoder changed the title Go to Definition in the same .vue file not working [VIDEO] Go to Definition in the same .vue file not working Mar 1, 2022
@EnjoyChan
Copy link

the same to me, some output :
Failed to transform template of ***index.vue.template
[Error - 12:19:05 PM] TypeError: e.isPropertyAccessChain is not a function

@hieu-ht
Copy link

hieu-ht commented Jul 13, 2022

This VSCode extension works well for me, hope this help
https://marketplace.visualstudio.com/items?itemName=zardoy.vetur-extended

@yoyo930021
Copy link
Member

Do you enable this vetur.experimental.templateInterpolationService in your setting?
https://vuejs.github.io/vetur/guide/interpolation.html#generic-language-features

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

No branches or pull requests

4 participants