Hey @WebStormIDE, any idea why my html file would be treated as ts file? It shows ts error on every line of the html file and thinks it should have typescript code in it. Only happening to one project though. I can provide screenshot when I get to work.
Is that an Angular project? Certain versions of Angular language service cause this issue when used with TypeScript 3.2.1. To solve the problem, please use TypeScript < 3.2.1 or disable Angular service in Preferences | Languages & Frameworks | TypeScript.
-
-
Yes, its an Angular project. Disabling the service fixed it. But what effects will it have in other files?
-
It disables error-checking in HTML template files performed by the service: https://angular.io/guide/language-service …
End of conversation
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.