I have a project using Handlebars, and Visual Studio 2017 displays dozens of "TS7027: Unreachable code detected" warnings from the Handlebars js files. I don’t even use Typescript in this project, so it’s not clear why this error appears, but this is a real problem, since I have to filter almost 50 TS7027 warnings in order to find warnings that are actually relevant. So, is there a way to ignore these warnings (I don’t think after some Googling) or better, tell Typescript not to parse any of my .js files?
Edit: I followed the instructions in the answer to this question ( How to prevent visual studio 2017 from building javascript? ), But still seeing warnings. They are present at the first opening of the project, before I explicitly save or build, so disabling TS compilation in the save / build file is not a solution for this. As a workaround, I disabled the Typescript extension in VS2017.
typescript visual-studio-2017
Michael r
source share