Keep getting "tsc.exe" exited with code 1
For me installing TypeScript for Visual Studio fixed it, although TypeScript was already installed globally on my machine via npm
Install these 2 NuGet packages:
Microsoft.TypeScript.MSBuild and Microsoft.TypeScript.Compiler
It updates your project with MSBuild task definition and TS compiler and solves the compilation issue