AngularJS and UI-Router: 'Error: transition superseded' during angularjs unit tests

后端 未结 3 1349
你的背包
你的背包 2021-01-01 15:18

I\'m attempting to create an authorization package for a project of mine. I\'m getting the error \'transition superseded\' during my unit tests, and I can\'t find out where

相关标签:
3条回答
  • 2021-01-01 15:48

    This could be an error with your routing logic. If not that, then try adding this to your app.config();

    $qProvider.errorOnUnhandledRejections(false)

    0 讨论(0)
  • 2021-01-01 15:50

    I had the same issue after update angular from 1.5.9 to version 1.6.1 and could solved it by update the dependencies with:

    npm update angular-ui-router
    

    The old version 0.3.1 leads to the error, with the updated version 0.3.2 my app works fine again (now with angular 1.6.1).

    0 讨论(0)
  • 2021-01-01 15:54

    When updating to angular 1.6.1 that's the message, but upgrading the ui-router to 0.3.2 fix the problem

    0 讨论(0)
提交回复
热议问题