<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">1.9.0-dev.20160521-1.0</p>
<p dir="auto"><strong>Code</strong></p>
<p dir="auto">Install node d.ts file:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="npm install --save-dev @types/node@4.0.21-alpha"><pre class="notranslate"><code class="notranslate">npm install --save-dev @types/node@4.0.21-alpha
</code></pre></div>
<p dir="auto">index.ts:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="console.log('hello');"><pre class="notranslate"><code class="notranslate">console.log('hello');
</code></pre></div>
<p dir="auto">tsconfig.json:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="{
    &quot;compilerOptions&quot;: {
        &quot;noImplicitAny&quot;: true,
        &quot;strictNullChecks&quot;: true,
        &quot;moduleResolution&quot;: &quot;node&quot;,
        &quot;pretty&quot;: true,
        &quot;allowSyntheticDefaultImports&quot;: true,
        &quot;skipDefaultLibCheck&quot;: true,
        // output options
        &quot;outDir&quot;: &quot;dist/&quot;,
        &quot;rootDir&quot;: &quot;./src&quot;,
        &quot;module&quot;: &quot;commonjs&quot;,
        &quot;target&quot;: &quot;es6&quot;,
        &quot;declaration&quot;: true,
        &quot;sourceMap&quot;: true,
        &quot;inlineSources&quot;: true
    },
    &quot;files&quot;: [
        &quot;src/index.ts&quot;,
        &quot;node_modules/@types/node/index.d.ts&quot;
    ]
}"><pre class="notranslate"><code class="notranslate">{
    "compilerOptions": {
        "noImplicitAny": true,
        "strictNullChecks": true,
        "moduleResolution": "node",
        "pretty": true,
        "allowSyntheticDefaultImports": true,
        "skipDefaultLibCheck": true,
        // output options
        "outDir": "dist/",
        "rootDir": "./src",
        "module": "commonjs",
        "target": "es6",
        "declaration": true,
        "sourceMap": true,
        "inlineSources": true
    },
    "files": [
        "src/index.ts",
        "node_modules/@types/node/index.d.ts"
    ]
}
</code></pre></div>
<p dir="auto"><strong>Expected behavior:</strong></p>
<p dir="auto">the build should work</p>
<p dir="auto"><strong>Actual behavior:</strong></p>
<p dir="auto">tsc errors with:</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="11:24:25 PM - File change detected. Starting incremental compilation...

13     stack?: string;
       ~~~~~

node_modules/@types/node/index.d.ts(13,5): error TS2300: Duplicate identifier 'stack'.


883     stack?: string;
        ~~~~~

node_modules/typescript/lib/lib.es6.d.ts(883,5): error TS2300: Duplicate identifier 'stack'."><pre class="notranslate"><code class="notranslate">11:24:25 PM - File change detected. Starting incremental compilation...

13     stack?: string;
       ~~~~~

node_modules/@types/node/index.d.ts(13,5): error TS2300: Duplicate identifier 'stack'.


883     stack?: string;
        ~~~~~

node_modules/typescript/lib/lib.es6.d.ts(883,5): error TS2300: Duplicate identifier 'stack'.
</code></pre></div>
<p dir="auto">// <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/RyanCavanaugh/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/RyanCavanaugh">@RyanCavanaugh</a></p>
<p dir="auto"><strong>TypeScript Version:</strong></p>
<p dir="auto">nightly with "node.d.ts" from typings</p>
<p dir="auto">We recently add <a href="https://github.com/Microsoft/TypeScript/blob/master/src/lib/es5.d.ts#L867">this</a>in to es5.d.ts<br>
<strong>Expected behavior:</strong><br>
No error<br>
<strong>Actual behavior:</strong><br>
Duplicate Identifier with the same property defined in "node.d.ts"</p>