Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to solve "Build:Unknown compiler option 'listemittedfiles'." on visual studio 2015 update 3?

After updating the NuGet Type Scripts packages, I was facing with one common build error problem "tsc.exe exited with code 1". After searching I have found the solution how to resolve it. As suggested I installed another two NuGet packages named Microsoft.TypeScript.Compiler and Microsoft.TypeScript.MSBuild. After installing those the tsc.exe exited with code 1 problem solved. But in the mean time a new problem arise on build "Unknown compiler option 'listemittedfiles'".

I was trying to solve it by the suggestion of this Typescript build failure.

But still there has no improvement of this problem.

Can anyone be able to provide a solution please? Please take a lots of thanks in advance.

My client project structure is looks like the image Please click here to view the image

like image 612
Md. Sabbir Ahamed Avatar asked Oct 25 '16 11:10

Md. Sabbir Ahamed


2 Answers

I suggest you to try to fix this issue by installing TypeScript 2.0.6 using the following link:

  • Visual Studio 2015 TypeScript Tools (2.0.6 at the time of writing)

This will also point MSBuild to the proper TypeScript build, which fully supports the --listEmittedFiles command switch.

See also this answer and/or this blog article I wrote on this topic for further details and references about this issue.

like image 131
Darkseal Avatar answered Nov 10 '22 07:11

Darkseal


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 windows console and run the command following command:

tsc -v

The result should be:

Version 1.0.1.0

If you have the latest typescript installed but don't see the version above, you probably have older versions of typescript installed, that may be the cause of your problems. Uninstall the older versions via "Programs and features" in the control panel of windows.

like image 22
samwise Avatar answered Nov 10 '22 05:11

samwise