Goto definition broken after vue add typescript
#4479
Unanswered
williamhCode
asked this question in
Q&A
Replies: 2 comments 3 replies
-
Remove |
Beta Was this translation helpful? Give feedback.
3 replies
-
Try to add |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I have a project that was using vue and javascript. The language server was working well with tsserver in both neovim and vscode (with Vue-Official). After I did
vue add typescript
, ashims-vue.d.ts
was added to my src directory and also atsconfig.json
. However, when i goto defintion a vue component in a .vue file, it just jumps to theshims-vue.d.ts
. The same happens with @/ paths. Also in my js files, goto defintion doesn't work at all.Any ideas why this might be happening? Help is appreciated thanks!
tsconfig.json
src/shims-vue.d.ts
Edit:
some more info.
It converted the main.js to main.ts, so I had to change it back in
vue.config.js
withalso here is the package.json and vue.config.js
Beta Was this translation helpful? Give feedback.
All reactions