<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 latest <code class="notranslate">angular-ui-router/angular-ui-router.d.ts</code> file in this repo and had problems.</li>
</ul>
<p dir="auto">angular-ui-router isn't working when using @types/angular-ui-router.</p>
<p dir="auto"><code class="notranslate">"Module 'angular' has no exported member 'ui'"</code></p>
<p dir="auto">every file now is red, and won't compile</p>
<p dir="auto">Looks like having a <code class="notranslate">&lt;reference types="angular" /&gt;</code> alongside a <code class="notranslate">import * as angular from 'angular';</code> won't work</p>
<p dir="auto">Same thing happens with angular-ui-bootstrap</p>
<p dir="auto">The modules that depend on <code class="notranslate">@types/angular</code> are outright broken. I'm not using angular global variable and when I do <code class="notranslate">import * as angular from 'angular'</code> then try to access a module namespace, such as <code class="notranslate">angular.ui.bootstrap</code>, <code class="notranslate">angular.translate</code>, <code class="notranslate">angular.ui</code>, they all give the error <code class="notranslate">Module 'angular' has no exported member 'ui'</code></p>
<p dir="auto">the code below fails:</p>
<div class="highlight highlight-source-ts notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="'use strict';

import * as angular from 'angular';

class Config {
    static $inject = ['$stateProvider', '$urlRouterProvider'];

    constructor($stateProvider: angular.ui.IStateProvider, $urlProvider: angular.ui.IUrlRouterProvider) {
         /*...*/
    }
}

angular.module('Module', []).config(Config);"><pre class="notranslate"><span class="pl-s">'use strict'</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">angular</span> <span class="pl-k">from</span> <span class="pl-s">'angular'</span><span class="pl-kos">;</span>

<span class="pl-k">class</span> <span class="pl-smi">Config</span> <span class="pl-kos">{</span>
    <span class="pl-k">static</span> <span class="pl-c1">$inject</span> <span class="pl-c1">=</span> <span class="pl-kos">[</span><span class="pl-s">'$stateProvider'</span><span class="pl-kos">,</span> <span class="pl-s">'$urlRouterProvider'</span><span class="pl-kos">]</span><span class="pl-kos">;</span>

    <span class="pl-en">constructor</span><span class="pl-kos">(</span><span class="pl-s1">$stateProvider</span>: <span class="pl-s1">angular</span><span class="pl-kos">.</span><span class="pl-s1">ui</span><span class="pl-kos">.</span><span class="pl-smi">IStateProvider</span><span class="pl-kos">,</span> <span class="pl-s1">$urlProvider</span>: <span class="pl-s1">angular</span><span class="pl-kos">.</span><span class="pl-s1">ui</span><span class="pl-kos">.</span><span class="pl-smi">IUrlRouterProvider</span><span class="pl-kos">)</span> <span class="pl-kos">{</span>
         <span class="pl-c">/*...*/</span>
    <span class="pl-kos">}</span>
<span class="pl-kos">}</span>

<span class="pl-s1">angular</span><span class="pl-kos">.</span><span class="pl-en">module</span><span class="pl-kos">(</span><span class="pl-s">'Module'</span><span class="pl-kos">,</span> <span class="pl-kos">[</span><span class="pl-kos">]</span><span class="pl-kos">)</span><span class="pl-kos">.</span><span class="pl-en">config</span><span class="pl-kos">(</span><span class="pl-smi">Config</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div>
<ul dir="auto">
<li>I tried using the <code class="notranslate">@types/node</code> package and had the problems below .</li>
</ul>
<p dir="auto">`node_modules/@types/node/assert.d.ts:56:14 - error TS2300: Duplicate identifier 'assert'.</p>
<p dir="auto">56     export = assert;<br>
~~~~~~</p>
<p dir="auto">node_modules/@types/node/ts3.7/assert.d.ts:56:14<br>
56     export = assert;<br>
~~~~~~<br>
'assert' was also declared here.</p>
<p dir="auto">node_modules/@types/node/ts3.5/globals.global.d.ts:1:13 - error TS2403: Subsequent variable declarations must have the same type.  Variable 'global' must be of type 'Global', but here has type 'Global &amp; typeof globalThis'.</p>
<p dir="auto">1 declare var global: NodeJS.Global &amp; typeof globalThis;<br>
~~~~~~</p>
<p dir="auto">node_modules/@types/node/globals.global.d.ts:1:13<br>
1 declare var global: NodeJS.Global;<br>
~~~~~~<br>
'global' was also declared here.</p>
<p dir="auto">node_modules/@types/node/ts3.7/assert.d.ts:56:14 - error TS2300: Duplicate identifier 'assert'.</p>
<p dir="auto">56     export = assert;<br>
~~~~~~</p>
<p dir="auto">node_modules/@types/node/assert.d.ts:56:14<br>
56     export = assert;<br>
~~~~~~<br>
'assert' was also declared here.`</p>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> 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>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox"> I fixed this error by removing the assert.d.ts file in the node/ts3.7 folder ,seems it was conflicting with the existing assert.d.ts in the root @types/node folder</li>
</ul>
<p dir="auto">@<a href="https://github.com/blog/821-mention-somebody-they-re-notified">https://github.com/blog/821-mention-somebody-they-re-notified</a></p>
<ul dir="auto">
<li>Authors: <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/kamal/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/kamal">@kamal</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/tdreyno/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/tdreyno">@tdreyno</a>  <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/jonmagic/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/jonmagic">@jonmagic</a> <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/farcaller/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/farcaller">@farcaller</a></li>
</ul>