<p dir="auto">When compiling a TypeScript project that references <code class="notranslate">@types/node</code>, the compiler (TSC) will report an error regarding duplicate <code class="notranslate">assert</code> identifiers.</p>
<div class="snippet-clipboard-content notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="node_modules/@types/node/assert.d.ts:56:14 - error TS2300: Duplicate identifier 'assert'.
56     export = assert;
                ~~~~~~
  node_modules/@types/node/ts3.7/assert.d.ts:56:14
    56     export = assert;
                    ~~~~~~
    'assert' was also declared here."><pre class="notranslate"><code class="notranslate">node_modules/@types/node/assert.d.ts:56:14 - error TS2300: Duplicate identifier 'assert'.
56     export = assert;
                ~~~~~~
  node_modules/@types/node/ts3.7/assert.d.ts:56:14
    56     export = assert;
                    ~~~~~~
    'assert' was also declared here.
</code></pre></div>
<p dir="auto">Rolling <code class="notranslate">@types/node</code> back to version <code class="notranslate">12.12.6</code> resolves the issue.</p>
<p dir="auto"><a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/G-Rath/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/G-Rath">@G-Rath</a> (mentioned due to the latest activity in the <code class="notranslate">ts3.*</code> directories)</p>
<p dir="auto">After adding the NuGet package <code class="notranslate">Handlebars.TypeScript.DefinitelyTyped</code>, it's throwing a lot of "Duplicate Identifier" errors because there are two handlebars files. My project will not compile with it installed.</p>