ui-router-extras icon indicating copy to clipboard operation
ui-router-extras copied to clipboard

ui-router 0.2.18 and ui-router-extras 0.1.2

Open napcat opened this issue 8 years ago • 4 comments

I update ui-router to 0.2.18 and ui-router-extras to 0.1.2 and now I got some error...

The navigation still occurs, but this error appears on the console:

ERROR When debug is true angular.js:10137 TypeError: Cannot read property 'self' of undefined at debugViewsAfterSuccess (ct-ui-router-extras.js:1260) at transitionSuccess (ct-ui-router-extras.js:1206) at processQueue (angular.js:15757) at angular.js:15773 at Scope.$digest (angular.js:16841) at Scope.$apply (angular.js:17133) at bootstrapApply (angular.js:1713) at doBootstrap (angular.js:1711) at bootstrapAngular (Main.js:1885) at InitApp (GlobalService.js:6)

ERROR When a state change happens angular.js:10137 Error: Could not resolve 'undefined' from state 'ANY_STATE_NAME' at Object.transitionTo (angular-ui-router.js:3179) at Object.$state.transitionTo (ct-ui-router-extras.js:215) at Object.$state.transitionTo (ct-ui-router-extras.js:1733) at Object.$state.transitionTo (ct-ui-router-extras.js:1200) at angular-ui-router.js:4143 at angular.js:18953 at completeOutstandingRequest (angular.js:5824) at angular.js:6100

The angular version is 1.5.3.

If I use the old versions of ui-router 0.2.13 and ui-router-extras 0.0.14 everything works fine.

napcat avatar Apr 01 '16 18:04 napcat

same here

pdemilly avatar Apr 01 '16 18:04 pdemilly

~~We have the same issue with ui-router to 0.2.18 and ui-router-extras 0.1.2. However, when attempting to recreate the issue in a plunkr I can't get it to fail (http://plnkr.co/edit/yVulhiYUn5cEX2MyRuMo)~~

EDIT: nevermind, we found out the issue was in another part of the codebase. So it does work for us using ui-router 0.2.18 and ui-router-extras 0.1.2

MBrouns avatar Apr 21 '16 15:04 MBrouns

Hi Guys, i get the following error when trying to enable debugmode via

(function() {
  'use strict';
   angular.module('app.module', [])
      .config(routerConfig);

  /** @ngInject */
  function routerConfig($stateProvider,$stickyStateProvider) {
    $stickyStateProvider.enableDebug(true);
    $stateProvider
      .state('app.parent.child', { 
....

    angular.js:13550 TypeError: Cannot read property 'self' of undefined
    at debugViewsAfterSuccess (ct-ui-router-extras.js:1253)
    at transitionSuccess (ct-ui-router-extras.js:1199)
    at processQueue (angular.js:15961)
    at angular.js:15977
    at Scope.$eval (angular.js:17229)
    at Scope.$digest (angular.js:17045)
    at Scope.$apply (angular.js:17337)
    at angular.js:19166
    at completeOutstandingRequest (angular.js:5869)
    at angular.js:6145

angular#1.5.5 angular-ui-router#0.2.18 ui-router-extras#0.1.2

any ideas?

webnugget avatar May 23 '16 12:05 webnugget

Same issue. angular#1.2.28 ui-router#0.2.16 ui-router-extras#0.1.2

Timmerop avatar Oct 27 '16 18:10 Timmerop