Error TS2304: Cannot find name 'Iterable'


I want to use Three.js with TypeScript. I studied how to make workflow with Gult, Browserify, and uglify here:

I installed TypeScript 2.3.2.

I receive this message after gulp command:

TypeScript error: node_modules/@types/three/three-core.d.ts(767,24): Error TS2304: Cannot find name ‘Iterable’.

Solution. Add “lib”: [ “es2015”, “dom” ] in tsconfig.json

  "files": [
  "compilerOptions": {
    "noImplicitAny": true,
    "target": "es5",
    "lib": [ "es2015", "dom" ]

thank you so much…it works fine for me…!

1 Like