VueJS Webstorm TypeScript - autocompletion for variables dosen't work in template

Hey guys,

 

I'm having hard time with WebStorm, VueJs and TypeScript class based components. I'm quite sure everything was fine a while ago but now autocomplete for variables doesn't work in templates anymore... Also I can not jump from template to any custom component I've created with Ctrl + clicking on component name in the template. Can anyone please help me? It slows down development process a lot... and it's a main reason why I choose WebStorm over any other IDE. 

1
3 comments

Please can you provide code snippets that can be used to recreate the issue?

0
Avatar
Permanently deleted user

I have a Component and inside it there's a variable named selectedCompany

And when I want to use that in template

 

 

It's not there. It's the same with methods. 

 

The other thins I was talking about is that, it was possible to Ctrl + click on component name and it would navigate you straight to it but not it doesn't work as well.

0

>it was possible to Ctrl + click on component name and it would navigate you straight to it but not it doesn't work as well.

Please can you share files/project that can be used to recreate the issue? Note that Vue.js integration doesn't fully support components written in TypeScript: Vue.extend() syntax is not supported at all (https://youtrack.jetbrains.com/issue/WEB-31721), vue-class-component works better but still props completion doesn't work, etc. (https://youtrack.jetbrains.com/issue/WEB-31693)

0

Please sign in to leave a comment.