Cannot find global type 'IterableIterator' with Typescript 1.7.5

前端 未结 2 1698
终归单人心
终归单人心 2021-01-23 07:15

I installed NPM version of Typescript 1.7.5 and angular2 beta. While building the project in Visual Studio 2015 Update 1, I get this errors:

1>VSTSC : error T         


        
2条回答
  •  无人共我
    2021-01-23 07:44

    You seem to add lib.d.ts twice because you use noLib and you specifically add node_modules/typescript/lib/lib.d.ts in files.

    I would just remove "node_modules/typescript/lib/lib.d.ts" path.

    There is also an issue with similar errors as you get: https://github.com/Microsoft/TypeScript/issues/5504

提交回复
热议问题