<p dir="auto">I tried using the types/angular-ui-bootstrap package, and now I have tons of build errors along the lines of:<br>
"Build" duplicate identifier 'angular'<br>
these are being raised from the angular-animate index.d.ts (which was fine before I imported angular-ui-bootstrap)</p>
<p dir="auto">I also get the error:<br>
Buile: Module 'angular.ui' has no exported member 'bootstrap' these errors are in the actual angular-ui-bootstrap index.d.ts file -- sorry, but I really don't understand what's happening here.</p>
<p dir="auto">My setup:<br>
we use typings to pull our definintions (we are on typescript 1.8.10</p>
<p dir="auto">if I uninstall the angular-ui-bootstrap typings, everything works (we have over a dozen or so typings packages installed, and no problems, so I <em>think</em> my configuration is ok.</p>
<p dir="auto">Is there something wrong with the typings, or is there something I should look at on my end?</p>
<p dir="auto">I don't know whether this helps, but typings installed the angular-bootstrap-ui definitions under typings/modules, but all of the other angular-* typings were installed under typings/globals.  I have to confess, I do not understand the rhyme or reason behind what goes into the /globals folder or the /modules folder, so maybe that is part of the problem?</p>
<p dir="auto">Regarding PR <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="403987879" data-permission-text="Title is private" data-url="https://github.com/DefinitelyTyped/DefinitelyTyped/issues/32567" data-hovercard-type="pull_request" data-hovercard-url="/DefinitelyTyped/DefinitelyTyped/pull/32567/hovercard" href="https://github.com/DefinitelyTyped/DefinitelyTyped/pull/32567">#32567</a></p>
<p dir="auto">// cc <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/rbuckton/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/rbuckton">@rbuckton</a> <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>, <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/DanielRosenwasser/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/DanielRosenwasser">@DanielRosenwasser</a></p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the <code class="notranslate">@types/node</code> (10.12.21) package and had problems.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I tried using the latest stable version of tsc. <a href="https://www.npmjs.com/package/typescript" rel="nofollow">https://www.npmjs.com/package/typescript</a></li>
</ul>
<p dir="auto">I don't know what this split was intended to do, but I had some typescript compiles fail in my CI this morning.</p>
<p dir="auto">The last build was using <code class="notranslate">@types/node</code> <code class="notranslate">10.12.19</code> (pre-split) and the build that failed for us was using <code class="notranslate">@types/node</code> <code class="notranslate">10.12.21</code>. (<code class="notranslate">package.json</code> files were using <code class="notranslate">^10.11.4</code> and no <code class="notranslate">package-lock.json</code> was present)</p>
<p dir="auto">When a library was built with <code class="notranslate">10.12.19</code>, the .d.ts file for the library looked like this:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="/// &lt;reference types=&quot;node&quot; /&gt;
import { Exception } from '@microsoft.azure/tasks';
import * as fs from 'fs';
// ... etc ... "><pre class="notranslate"><span class="pl-c">/// &lt;reference types="node" /&gt;</span>
<span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Exception</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@microsoft.azure/tasks'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">fs</span> <span class="pl-k">from</span> <span class="pl-s">'fs'</span><span class="pl-kos">;</span>
<span class="pl-c">// ... etc ... </span></pre></div>
<p dir="auto">and when it was build with <code class="notranslate">10.12.21</code> it was missing the <code class="notranslate">/// &lt;reference types="node" /&gt;</code> -- and looked like this:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import { Exception } from '@microsoft.azure/tasks';
import * as fs from 'fs';
// ... etc ... "><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-smi">Exception</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@microsoft.azure/tasks'</span><span class="pl-kos">;</span>
<span class="pl-k">import</span> <span class="pl-c1">*</span> <span class="pl-k">as</span> <span class="pl-s1">fs</span> <span class="pl-k">from</span> <span class="pl-s">'fs'</span><span class="pl-kos">;</span>
<span class="pl-c">// ... etc ... </span></pre></div>
<p dir="auto">I'm not sure what this split was intent on doing, but it had a side-effect with the typescript compiler, which causes dependency problems</p>
<p dir="auto">I rolled back and hard-coded <code class="notranslate">10.12.19</code> and rebuilt and everything worked as expected.</p>