[Fixed] HTML errors appearing on .ts file in vscode


I have this issue where certain .ts files are lined with errors you’d expect to see in an HTML file, e.g. "Can’t bind to ‘ngClass’ since it isn’t a known property of ‘div’" appears over an import in my component example image

I’ve uninstalled and reinstalled vs code to no avail.


Turns out the error was caused by extending another component that didn’t have angular decorations. Fixing this resolved the errors.

Leave a Reply

(*) Required, Your email will not be published