I get the error as below when building project after uninstalling the TypeScript 2.0. (Visual Studio 2015)
tsc : error TS5023: Build:Unknown compiler option 'listemittedfiles'.
Do you know how to fix it? Thanks,
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):
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With