Typescript error “Cannot write file … because it would overwrite input file.”

后端 未结 19 1585
醉梦人生
醉梦人生 2021-02-01 12:04

In my Typescript 2.2.1 project in Visual Studio 2015 Update 3, I am getting hundreds of errors in the error list like:

Cannot write file \'C:/{{my-project

19条回答
  •  执念已碎
    2021-02-01 12:36

    I had this issue too. In my case, I restored the original version of file \tools\JsEngine\typescriptServices.js and it solved.

    I found that typescriptServices.js was changed by Visual Studio, because of the end of the line (CRLF or CR), and after that VS cannot run it in a correct way.

提交回复
热议问题