I get the error as below when building project after uninstalling the TypeScript 2.0. (Visual Studio 2015)
tsc : error TS5023: Build:Unknown compiler
please check this out how to setup angular2 + typescript in VS2015 community (update 3)
https://github.com/MohtishamZubair/AgentDistribution/wiki/Setting-up-AngularJS2-in-VS2015-in-MVC5
Now you don't need to run node.js server or even any command line npm commands.
I had my hard times yesterday trying to fix this nasty issue: I finally found out that MSBuild was still using an old TypeScript version instead of the latest one. To fix it for good, you should do the following:
Doing this will point MSBuild to the proper TypeScript build, which fully supports the --listEmittedFiles command switch.
For more info regarding this issue I also suggest you to read this article that I've written about such topic and also these two Github threads (affiliation warning: the second one being on the GitHub repo of a book I wrote):
tsc : error TS5023: Build:Unknown compiler option 'listemittedfiles'.
Remove listemittedfiles
from your tsconfig.json
.
I had similar issue, cleared it
I had manually added ts.config file in the project. I removed it.
I had the some problem. I found out, that I had a wrong (i.e. older) version of typescript installed (in addition to the current one) and even though the latest version was installed too, the old typescript compiler (tsc) was used.
Open a MSBuild Windows Console and run the command following command:
tsc -v
and see what version it gives
uninstalling the old version solved the problem