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

后端 未结 19 1367
醉梦人生
醉梦人生 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:24

    In my case due to developing a library and an app at the same time...

    Moving a file, which has an import from the library, from the app to the library, resulted that the file that is now in the library would import stuff from its own dist folder..

    Funny thing is.. this is actually refactoring at its best.. it kept the correct reference to the file :)

提交回复
热议问题