title: Cannot find module 'angular2/core' in Visual Studio 2015 Update 1
body: <p>I came across this error <strong>Cannot find module 'angular2/core'</strong> when trying out the <strong>angular2 beta</strong> version in <strong>Visual Studio 2015 Update 1</strong>.</p>
  
  <p>The code is below:</p>
  
  <pre><code>import {Component} from "angular2/core"
  
  @Component({
      selector: 'my-app',
      template: '&lt;h1&gt;My First Angular 2 App&lt;/h1&gt;'
  })
  export class AppComponent {
  }
  </code></pre>
  
  <p>I have the <em>angular2 beta</em> version in my <em>Visual Studio ASP.NET 5</em> project. I have also enabled compile TS files when building the project.</p>
  
  <p>A few things that I tried, but none worked:</p>
  
  <ol>
  <li>I added <code>/// &lt;reference path="../node_modules/angular2/core.d.ts" /&gt;</code> at the top of the <strong>ts</strong> file.</li>
  </ol>
  
  <p>2.</p>
  
  <pre><code>import {Component} from "angular2/bundles/angular2"
  
  @Component({
      selector: 'my-app',
      template: '&lt;h1&gt;My First Angular 2 App&lt;/h1&gt;'
  })
  export class AppComponent {
  }
  </code></pre>
  
  <p>3.</p>
  
  <pre><code>import {Component} from "../node_modules/angular2/core"
  
  @Component({
      selector: 'my-app',
      template: "&lt;h1&gt;My First Angular 2 App&lt;/h1&gt;"
  })
  export class AppComponent {
  }
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>This is my tsconfig.json</p>
  
  <pre><code>{
    "compilerOptions": {
      "noImplicitAny": false,
      "noEmitOnError": true,
      "removeComments": true,
      "sourceMap": true,
      "target": "es6",
      "module": "system",
      "emitDecoratorMetadata": true,
      "experimentalDecorators": true
    },
    "exclude": [
      "node_modules",
      "wwwroot",
      "bower_components"
    ]
  }
  </code></pre>
  
  <p>UPDATE:</p>
  
  <p>I added <strong>"moduleResolution": "node"</strong> to <strong>tsconfig.json</strong> file, but now I get another set of errors:</p>
  
  <blockquote>
    <p>1>------ Rebuild All started: Project: Terminal.Web, Configuration:
    Debug Any CPU ------
    1>C:\Test\node_modules\angular2\typings\es6-shim\es6-shim.d.ts(6,14):
    error TS2300: Build: Duplicate identifier 'PropertyKey'.
    1>C:\Test\node_modules\angular2\typings\es6-shim\es6-shim.d.ts(9,5):
    error TS2300: Build: Duplicate identifier 'done'.
    1>C:\Test\node_modules\angular2\typings\es6-shim\es6-shim.d.ts(10,5):
    error TS2300: Build: Duplicate identifier 'value'.
    1>C:\Test\node_modules\angular2\typings\es6-shim\es6-shim.d.ts(248,5):
    error TS2300: Build: Duplicate identifier 'EPSILON'.
    1>C:\Test\node_modules\angular2\typings\es6-shim\es6-shim.d.ts(283,5):
    error TS2300: Build: Duplicate identifier 'MAX_SAFE_INTEGER'.
    1>C:\Test\node_modules\angular2\typings\es6-shim\es6-shim.d.ts(290,5):
    error TS2300: Build: Duplicate identifier 'MIN_SAFE_INTEGER'.
    1>C:\Test\node_modules\angular2\typings\es6-shim\es6-shim.d.ts(346,5):
    error TS2300: Build: Duplicate identifier 'flags'.
    1>C:\Test\node_modules\angular2\typings\es6-shim\es6-shim.d.ts(498,5):
    error TS2300: Build: Duplicate identifier 'prototype'.
    1>C:\Test\node_modules\angular2\typings\es6-shim\es6-shim.d.ts(561,5):
    error TS2300: Build: Duplicate identifier 'size'.
    1>C:\Test\node_modules\angular2\typings\es6-shim\es6-shim.d.ts(570,5):
    error TS2300: Build: Duplicate identifier 'prototype'.
    1>C:\Test\node_modules\angular2\typings\es6-shim\es6-shim.d.ts(581,5):
    error TS2300: Build: Duplicate identifier 'size'.
    1>C:\Test\node_modules\angular2\typings\es6-shim\es6-shim.d.ts(590,5):
    error TS2300: Build: Duplicate identifier 'prototype'.
    1>C:\Test\node_modules\angular2\typings\es6-shim\es6-shim.d.ts(605,5):
    error TS2300: Build: Duplicate identifier 'prototype'.
    1>C:\Test\node_modules\angular2\typings\es6-shim\es6-shim.d.ts(619,5):
    error TS2300: Build: Duplicate identifier 'prototype'. 1>C:\Program
    Files (x86)\Microsoft SDKs\TypeScript\1.7\lib.es6.d.ts(3841,14): error
    TS2300: Build: Duplicate identifier 'PropertyKey'. 1>C:\Program Files
    (x86)\Microsoft SDKs\TypeScript\1.7\lib.es6.d.ts(4061,5): error
    TS2300: Build: Duplicate identifier 'EPSILON'. 1>C:\Program Files
    (x86)\Microsoft SDKs\TypeScript\1.7\lib.es6.d.ts(4096,5): error
    TS2300: Build: Duplicate identifier 'MAX_SAFE_INTEGER'. 1>C:\Program
    Files (x86)\Microsoft SDKs\TypeScript\1.7\lib.es6.d.ts(4103,5): error
    TS2300: Build: Duplicate identifier 'MIN_SAFE_INTEGER'. 1>C:\Program
    Files (x86)\Microsoft SDKs\TypeScript\1.7\lib.es6.d.ts(4389,5): error
    TS2300: Build: Duplicate identifier 'done'. 1>C:\Program Files
    (x86)\Microsoft SDKs\TypeScript\1.7\lib.es6.d.ts(4390,5): error
    TS2300: Build: Duplicate identifier 'value'. 1>C:\Program Files
    (x86)\Microsoft SDKs\TypeScript\1.7\lib.es6.d.ts(4619,5): error
    TS2300: Build: Duplicate identifier 'flags'. 1>C:\Program Files
    (x86)\Microsoft SDKs\TypeScript\1.7\lib.es6.d.ts(4647,5): error
    TS2300: Build: Duplicate identifier 'size'. 1>C:\Program Files
    (x86)\Microsoft SDKs\TypeScript\1.7\lib.es6.d.ts(4657,5): error
    TS2300: Build: Duplicate identifier 'prototype'. 1>C:\Program Files
    (x86)\Microsoft SDKs\TypeScript\1.7\lib.es6.d.ts(4674,5): error
    TS2300: Build: Duplicate identifier 'prototype'. 1>C:\Program Files
    (x86)\Microsoft SDKs\TypeScript\1.7\lib.es6.d.ts(4686,5): error
    TS2300: Build: Duplicate identifier 'size'. 1>C:\Program Files
    (x86)\Microsoft SDKs\TypeScript\1.7\lib.es6.d.ts(4696,5): error
    TS2300: Build: Duplicate identifier 'prototype'. 1>C:\Program Files
    (x86)\Microsoft SDKs\TypeScript\1.7\lib.es6.d.ts(4712,5): error
    TS2300: Build: Duplicate identifier 'prototype'. 1>C:\Program Files
    (x86)\Microsoft SDKs\TypeScript\1.7\lib.es6.d.ts(5099,5): error
    TS2300: Build: Duplicate identifier 'prototype'.
    ========== Rebuild All: 0 succeeded, 1 failed, 0 skipped ==========</p>
  </blockquote>