title: Uncaught Error: [$injector:modulerr] when using ui.router
body: <p>I'm trying to use a route to pass parameters via the url using <strong>ui.router</strong> however i'm stuck at the first hurdle as i can't seem to get the ui-router to register so i get the following error.</p>
  
  <pre><code>Uncaught Error: [$injector:modulerr]
  </code></pre>
  
  <p>I've included my ui.router js file in a config file that looks something like this:
  <code>'./build/lib/ui-router/release/angular-ui-router.min.js'</code></p>
  
  <p>I then include <strong>ui.router</strong> in my module:</p>
  
  <pre><code>topic.Module = angular.module('topic', ['ui.router']);
  </code></pre>
  
  <p>and try to create a sample state like so:</p>
  
  <pre><code>topic.Module.config(['$stateProvider', function($stateProvider) {
      $stateProvider
          .state('app', {
              url: '/'
          });
  }]);
  </code></pre>
  
  <p>Is there anything obvious that i'm doing or not doing that would result in this not working or getting the above error? I've cut the contents of the state down completely to confirm nothing else was causing the error. </p>
  
  <p>I've tried including <code>'ui-router'</code> instead of <code>'ui.router'</code> i've included in the main app module also with the same results.</p>