HTML files don't make the link with the typescript file attached to it
Hello,
Since an update, my HTML files don't make the link with the typescript file attached to it. All my variables used in the HTML are highlighted with the message "Unresolved variable".
My application displays the variables correctly without any compile error.
What should I do so that the HTML can see again the variables contained in my TS file?
请先登录再写评论。
please could you check if the issue persists after caches invalidation (File > Invalidate caches, Invalidate and Restart, with Clear file system caches enabled)? if yes, could you try composing a sample app that reproduces it?
Unfortunately the problem persists. Once the indexing is finished, it always tells me the same thing.
To illustrate my problem a little better, my components are arranged in this order :
my-component (folder)
- my-component.ts
- my-component.scss
- my-component.vue.html
In my HTML file, I link to my other files like this:
And as said before, my variables or component calls are showing me recently -> Unresolved variable or type myVariable
I don't know why this link got lost between my HTML and TS files.
After that it doesn't prevent the application to work, just I lose in comfort of reading and understanding.
Ah, I see. The issue is tracked at https://youtrack.jetbrains.com/issue/WEB-52495/Vue-3-component-props-methods-defined-in-separate-files-not-recognized, please follow it for updates
Thank you very much !