Issue with angular html templates being mistaken for typescript sources


I am encountering an issue with my current setup of intellij: HTML templates are being mistaken for typescript source files in my angular app.

I am therefore getting lots of errors such as : TS2304: Cannot find name 'dialog'. etc...

How can I fix that ?

Thanks in advance,

Comment actions Permalink

Disabling Angular language service in Settings | Languages & Frameworks | TypeScript should help.
Similar issue is tracked at, but unfortunately, we haven't yet found a way to recreate it. Please can you share a sample project that shows it up?

Comment actions Permalink

Thanks a lot for your help Elena! The workaround fixed the issue.

Unfortunately I can't share my company's project.


Please sign in to leave a comment.