I am aware of siiar questions, such as Angularjs 1.7.9 - Possibly unhandled rejection and those mentioned in it as duplicates.
However, my code does not use promises (that I am aware of; certainly no $promise
or $http
).
I am just knocking up a simple ui-router
demo for a friend. It is just two views, each with a button that toggles to the other view. It works just fine with AngulrJs 1.5, and breaks with the above error in 1.7.
A simple as it is, it's a bit too much code to post. In case, rather than finding the error in my code, I woudl like a canonical answer to help others who read this question in future : how to go about denugging this error message?
Error: transition failed (caused by "Possibly unhandled rejection: {}")
at r [as $get] (http://localhost/common/js/third_party/ui-router_zero_pint_2_point_11/angular-ui-router.min.js:7:11365) at Object.invoke (http://localhost/common/js/third_party/angular-1_point_7_point_9/angular.min.js:45:62) at http://localhost/common/js/third_party/angular-1_point_7_point_9/angular.min.js:46:365 at d (http://localhost/common/js/third_party/angular-1_point_7_point_9/angular.min.js:43:495) at e (http://localhost/common/js/third_party/angular-1_point_7_point_9/angular.min.js:44:235) at Object.invoke (http://localhost/common/js/third_party/angular-1_point_7_point_9/angular.min.js:44:320) at http://localhost/common/js/third_party/angular-1_point_7_point_9/angular.min.js:47:18 at r (http://localhost/common/js/third_party/angular-1_point_7_point_9/angular.min.js:8:76) at fb (http://localhost/common/js/third_party/angular-1_point_7_point_9/angular.min.js:46:499) at c (http://localhost/common/js/third_party/angular-1_point_7_point_9/angular.min.js:22:57)