error TS2304: Cannot find name 'RTCPeerConnection'
<p>I am using WebRTC in Angular 2.</p>

<p>In <strong>TypeScript 1.x</strong>, I can use this successfully.</p>

<pre><code>const peerConnection = new RTCPeerConnection(configuration, null);
</code></pre>

<p>But after updating to <strong>TypeScript 2.x</strong>, I got this error in my terminal:</p>

<blockquote>
  <p>error TS2304: Cannot find name 'RTCPeerConnection'.</p>
</blockquote>

<p>I already did <code>npm install --save-dev @types/webrtc</code>, and my IDE WebStorm already link it to the typing of <code>RTCPeerConnection</code> correctly.</p>

<p>Typing of <code>RTCPeerConnection</code> is in /my-project/node_modules/@types/webrtc/RTCPeerConnection.d.ts</p>

<p>My <strong>tsconfig.json</strong> file:</p>

<pre><code>{
  "compilerOptions": {
    "emitDecoratorMetadata": true,
    "experimentalDecorators": true,
    "target": "es5",
    "module": "commonjs",
    "removeComments": true,
    "sourceMap": true,
    "lib": ["es6", "dom"]
  },
  "include": [
    "node_modules/@types/**/*.d.ts",
    "src/**/*.ts"
  ],
  "exclude": [
    "node_modules",
    "!node_modules/@types/**/*.d.ts"
  ],
  "compileOnSave": false,
  "buildOnSave": false,
  "atom": {
    "rewriteTsconfig": false
  }
}
</code></pre>

<p>How can I do it correctly?</p>