typescriptvisual-studio-2015

Visual Studio TypeScript Compile On Save Fails, "Project contained errors" but no errors are shown?


I have a web project that had "compile on save" working perfect for almost year. I then switched over to using npm and node_modules/@types rather than Typescript Definition Packages via NuGet, and so, now i'm using the tsconfig.json to control what typescript is included in the "project" Now, whenever I attempt to save a file,

Project contained errors. Output generation skipped.

shows up in the blue status bar at the bottom, but it doesn't actually show any of the errors in the error list... Is there anyway to figure out what the errors actually are?


Solution

  • I believe this was due to my Visual Studio Typescript version not matching with my npm version. I eventually fixed all of my errors by running TSC on each file that was failing, until all errors had been resolved.