Typescript Cannot find name 'IterableIterator'
I solve the same problem with tsc -v 3.5.3
and @types/node
(tested es5 and es6)
npm install @types/node --save--dev
and add "node"
in the tsconfig.json
"compilerOptions": {
"types": [
"./",
"node"
]
}
Take a look here DefinitelyTyped for complete node types.
Problem was that tsc cannot see my tsconfig.json, after run tsc -t ES6 app.ts code was compiled properly.