title: Angular 2 cannot find file name 'Set'
body: <p>Currently, I am updating my project from angular2 beta15 to rc4. When I am compiling, I am getting an error:</p>
  
  <blockquote>
    <p>path/node_modules/@angular/common/src/directives/ng_class.d.ts(81,35): error TS2304: Cannot find name 'Set'.</p>
  </blockquote>
  
  <p>My tsconfig.json looks as following:</p>
  
  <pre><code>{
    "compilerOptions": {
      "target": "ES5",
      "module": "commonjs",
      "sourceMap": true,
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true,
      "moduleResolution": "node",
      "removeComments": false,
      "noImplicitAny": true,
      "suppressImplicitAnyIndexErrors": false,
      "declaration": true,
      "outDir": "tmp/app"
    },
    "exclude": [
      "node_modules",
      "dist",
      "tmp"
    ]
  }
  </code></pre>
  
  <p>in main.ts I also have included:</p>
  
  <pre><code>/// &lt;reference path="../typings/index.d.ts" /&gt;
  /// &lt;reference path="../typings/tsd.d.ts"/&gt;
  </code></pre>
  
  <p>and typings.json:</p>
  
  <pre><code>{
    "name": "my-project",
    "dependencies": {},
    "globalDependencies": {
      "core-js": "registry:dt/core-js#0.0.0+20160602141332",
      "jasmine": "registry:dt/jasmine#2.2.0+20160621224255",
      "node": "registry:dt/node#6.0.0+20160621231320",
      "moment": "registry:dt/moment#2.8.0+20160316155526",
      "moment-node": "registry:dt/moment-node#2.11.1+20160329220348",
      "es6-shim": "registry:dt/es6-shim#0.31.2+20160317120654"
    }
  }
  </code></pre>
  
  <p>This error is gone when I change "target": "ES5" to "ES6" in tsconfig.json, but I need to use ES5. I assume the issue comes up when I do not include <code>///&lt;reference path="../../node_modules/angular2/typings/browser.d.ts"/&gt;</code> However, according to <a href="https://github.com/typings/typings/issues/151" rel="nofollow">https://github.com/typings/typings/issues/151</a>, we can use <code>typings/index.d.ts</code> instead. </p>
  
  <p>Could you please share you opinion to solve this issue? Thank you very much in advance. </p>