Search code examples
htmlangularangular6phpstorm

PhpStorm does not recognize HTML tags correctly


I'm trying to write an HTML file in PhpStorm and I got a bunch of errors. I'm not sure how to explain it, so I will link a screenshot below.

Basically I got an error at each HTML tag and error message like

TS2365 Operator '>' cannot be applied to string and number

I have not enabled TSLint and my file mapping is correct.

enter image description here

Any help will be appreciated


Solution

  • WEB-36373 is fixed in 2018.3.3.

    For now, I can suggest turning Angular language service off in Settings | Languages & Frameworks | TypeScript (all the angular functionality will still be available)