title: TS2694 (TS) Namespace 'angular' has no exported member 'ui'
body: <p>After reviewing similar questions and attempting their solutions I am still at a lose as to why this scenario will not resolve.</p>
  
  <ol>
  <li>Double checked for any typos</li>
  <li>Attempted solution from <a href="https://stackoverflow.com/questions/45791412/cant-find-inline-index-d-ts-of-uirouter-angularjs">Q&amp;A 45791412</a></li>
  <li>Examined my <code>yarn.lock</code> file for issue from <a href="https://stackoverflow.com/questions/46666667/error-ts2694-namespace-angular-has-no-exported-member-xxx-after-upgrading">Q&amp;A 46666667</a></li>
  <li>Searched for answers within Github for <a href="https://github.com/angular-ui/ui-router/issues/" rel="nofollow noreferrer">UIRouter</a> found <a href="https://github.com/angular-ui/ui-router/issues/3514" rel="nofollow noreferrer">issue 3514</a> but the solution did not resolve my issue</li>
  </ol>
  
  <h3>Issue</h3>
  
  <p>Errors when building and no intellisense is being provided when applying types to UIRouter objects.</p>
  
  <pre><code>TS2694 (TS) Namespace 'angular' has no exported member 'ui'
  TS2307 (TS) Cannot find module '@uirouter/core 
  </code></pre>
  
  <h3>Project Details</h3>
  
  <pre><code>Node       - 8.9.4 
  NPM        - 5.6.0
  Yarn       - 1.3.2
  Typescript - 2.6.2 (installed globally)
  </code></pre>
  
  <p>TS2694 occurs in my code when attempting to create a route definition for my module. </p>
  
  <pre><code>function Configuration(
      $stateProvider: ng.ui.IStateProvider
  ) {
      $stateProvider
          .state('Home', &lt;ng.ui.IState&gt;{
              url: '/',
              controller: 'HomeController',
              controllerAs: 'vm',
              templateUrl: 'js/views/home/home.html'
          });
  }
  </code></pre>
  
  <p>TS2307 occurs in the index.d.ts file, only when being viewed. (reduced for brevity), it also occurs in other files with the same reference.</p>
  
  <pre><code>import './viewScroll';
  declare const _default: "ui.router";
  export default _default;
  import * as core from '@uirouter/core';
  export { core };
  export * from '@uirouter/core';
  </code></pre>
  
  <p>tsconfig.json </p>
  
  <pre><code>{
    "compileOnSave": true,
    "compilerOptions": {
      "target": "es5", 
      "module": "commonjs", 
      "sourceMap": true,
      "strict": true, 
      "moduleResolution": "node" 
    },
    "exclude": [
      "node_modules"
    ]
  }
  </code></pre>
  
  <p>npm package file (contents of devDependencies) all of these show up in my <code>node_modules</code> folder as expected. </p>
  
  <pre><code>"devDependencies": {
    "@types/angular": "^1.6.40",
    "@types/requirejs": "^2.1.31",
    "@uirouter/angularjs": "^1.0.13",
    "@uirouter/core": "^5.0.14",
    "angular": "^1.6.8",
    "bootstrap": "3.3.7",
    "jquery": "^3.2.1",
    "node-sass": "^4.7.2"
  }
  </code></pre>