Red squiggly when using Angular 2 in HTML file in Visual Studio 2015

When I use Angular 2 code in HTML files, I get red squiggly lines like so:

squiggly

If I hover my mouse over the red squiggly, no error or anything comes up.

Not sure if it’s relevant, but I am using ReSharper Ultimate 10.0.2.

2
Leave a Reply

avatar
2 Comment threads
0 Thread replies
0 Followers
 
Most reacted comment
Hottest comment thread
1 Comment authors
Jason Recent comment authors
  Subscribe  
newest oldest most voted
Notify of
Jason
Guest

Unfortunately, this is a limitation in ReSharper. It’s HTML parser doesn’t handle the full range of characters the HTML5 spec allows, and that Angular2 takes advantage of. So, it’s ReSharper reporting syntax errors (and not parsing the rest of the attributes correctly, either).

I’ve raised an issue you can track, comment and vote on: RSRP-458056

Jason
Guest

Looks like Resharper fixed this issue in the latest update 2016.1.2