Visual Studio TypeScript Compile On Save Fails, "Project Contains Errors," But Errors Not Displayed?

I have a web project that "compiled to save", working perfectly for almost a year. Then I switched to using npm packages node_modules/@typesand not Typescript definition packages through NuGet, and so now I use tsconfig.json to control that Typescript is included in the "project". Now when I try to save the file,

The project contains errors. The output value is skipped.

appears in the blue status bar at the bottom, but actually no error appears in the error list ... Is there a way to find out what the errors really are?

+2
source share
4 answers

I believe this is because the version of Visual Studio Typescript does not match my version of npm. I eventually fixed all my errors by running TSC for every file that crashed until all errors were resolved.

0
source

, , . , Visual Studio . , Visual Studio , , Normal. > > >

Setting verbosity of the compiler

, /. , .

TypeScript compiler command

. tsc.exe, . . , .

+1

Typescript 2.4, 2.5, . , . 2017 . VS 2015 ,

+1
source

In my case, this was resolved by closing and restarting Visual Studio

0
source

Source: https://habr.com/ru/post/1680867/


All Articles