title: AngularJS UI-Router: "toState.$$state is not a function"
body: <ul>
  <li>Angular 1.4.4</li>
  <li>UI-Router 0.2.15</li>
  <li>UI-Router Extras 0.0.14</li>
  <li>jQuery 2.1.4</li>
  </ul>
  
  <p>Stack trace:</p>
  
  <pre><code>TypeError: toState.$$state is not a function
      at ct-ui-router-extras.dsr.js:141
      at Object.forEach (angular.js:350)
      at ct-ui-router-extras.dsr.js:137
      at Scope.$get.Scope.$broadcast (angular.js:16238)
      at $state.transitionTo.$state.transition.resolved.then.$state.transition (angular-ui-router.js:3311)
      at processQueue (angular.js:14634)
      at angular.js:14650
      at Scope.$get.Scope.$eval (angular.js:15916)
      at Scope.$get.Scope.$digest (angular.js:15727)
      at Scope.$get.Scope.$apply (angular.js:16024)
          (anonymous function) @ angular.js:12416
          $get @ angular.js:9203
          $get.Scope.$broadcast @ angular.js:16240
          $state.transitionTo.$state.transition.resolved.then.$state.transition @ angular-ui-router.js:3311
          processQueue @ angular.js:14634
          (anonymous function) @ angular.js:14650
          $get.Scope.$eval @ angular.js:15916
          $get.Scope.$digest @ angular.js:15727
          $get.Scope.$apply @ angular.js:16024
          bootstrapApply @ angular.js:1658
          invoke @ angular.js:4473
          doBootstrap @ angular.js:1656
          bootstrap @ angular.js:1676
          angularInit @ angular.js:1570
          (anonymous function) @ angular.js:28599
          jQuery.Callbacks.fire @ jquery.js:3099
          jQuery.Callbacks.self.fireWith @ jquery.js:3211
          jQuery.extend.ready @ jquery.js:3417
          completed @ jquery.js:3433
  </code></pre>
  
  <p>From preliminary research, I gather this is from some kind of version conflict, but updating all of my <code>bower.json</code> dependencies to the latest versions has not solved the issue (and may even be the cause of the issue, but I can't pinpoint what packages are interacting badly).</p>
  
  <pre><code>{
    "devDependencies": {
      "angular-mocks": "latest"
    },
    "dependencies": {
      "angular": "latest",
      "bootstrap": "3.x",
      "angular-bootstrap": "latest",
      "angular-ui-router": "latest",
      "ui-router-extras": "latest",
      "angular-moment": "latest",
      "angular-daterangepicker": "latest",
      "ng-jcrop": "latest",
      "ngGAPI": "https://github.com/christiansmith/ngGAPI.git",
      "angular-permission": "latest",
      "angular-ui-calendar": "latest"
    },
    "resolutions": {
      "angular": "&gt;=1.0.8",
      "isotope": "~2.1.1",
      "fullcalendar": "~2.3.2",
      "outlayer": "^1.2.0"
    }
  }
  </code></pre>