Visual Studio Shows Tons of JavaScript Errors for an ES6 project

172 Views Asked by At

I'm using Node.js tools for Visual Studio 2015. All ES6 features under Node.js tools options are turned on. I've tried turning them off too. I've also tried setting JavaScript files not to display syntax highlighting.

Visual Studio displays tons of errors for files containing ES6 JavaScript (the content of the files are actually just fine by ES6 standards).

enter image description here

Interestingly, if I double click on any of the errors, I get a message

enter image description here

So, it seems that maybe VS is "double-inspecting" these files...and the second pass fails. Because if I open the file in question from solution explorer, there is no run underlining anywhere in the file?

I've spent a long time troubleshooting this. Is there any way to make Visual Studio work, a little bit?

1

There are 1 best solutions below

2
On

What version of Node.js Tools for Visual Studio are you using? You may just need to update to the latest version.

I had this same problem with version 1.1.31117.00, but I'm not seeing it anymore with 1.2.40726.00.