error TS2304: Build:Cannot find name 'Iterable' after upgrading to Angular 4 error TS2304: Build:Cannot find name 'Iterable' after upgrading to Angular 4 typescript typescript

error TS2304: Build:Cannot find name 'Iterable' after upgrading to Angular 4


'Iterable' is defined in the typings file for node. Installing file that solved the problem for me (node_modules/@types/node/index.d.ts).

npm install @types/node --save-dev


This looks very much what is described here:

https://github.com/DefinitelyTyped/DefinitelyTyped/issues/16939

So either try using

"target": "es6"

as described there - or what works for us:

"target": "es5","lib": ["es2016","dom"]


Upgrading my whole environment, not the project, did the trick.I upgraded to VS2017 and everything now compiles fine.

There was probably a corruption in my install albeit I reinstalled nearly everything besides VS2015 itself.

Thanks everyone for the help.