Build:Unknown compiler option 'listemittedfiles'

前端 未结 5 2058
鱼传尺愫
鱼传尺愫 2020-12-10 11:32

I get the error as below when building project after uninstalling the TypeScript 2.0. (Visual Studio 2015)

tsc : error TS5023: Build:Unknown compiler

相关标签:
5条回答
  • 2020-12-10 11:43

    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.

    0 讨论(0)
  • 2020-12-10 11:46

    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:

    • Install the updated Visual Studio 2015 TypeScript Tools (2.0.6 at the time of writing)
    • (optionally) remove the TypeScript 1.x references from your PATH environment variable and/or replace them with the new TypeScript 2.x folder path.

    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):

    • https://github.com/aspnet/Tooling/issues/651
    • https://github.com/PacktPublishing/ASPdotNET-Core-and-Angular-2/issues/1
    0 讨论(0)
  • 2020-12-10 11:55

    tsc : error TS5023: Build:Unknown compiler option 'listemittedfiles'.

    Remove listemittedfiles from your tsconfig.json.

    0 讨论(0)
  • 2020-12-10 12:04

    I had similar issue, cleared it

    I had manually added ts.config file in the project. I removed it.

    0 讨论(0)
  • 2020-12-10 12:06

    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

    0 讨论(0)
提交回复
热议问题