angular-ui / angular-ui/ui-router

this.parent.parameters() is not a function while Upgrading angular-ui-router from 0.2.15 to 1.0.29

Đang mở
#3,842 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
13.4k
Fork
2.9k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

I'm upgrading angular js from 1.5 to 1.8.2.

to upgrade we have to upgrade angular-ui-router.

while upgrading this following error is thrown

angular-ui-router.js?compile=false:7302 Transition Rejection($id: 0 type: 6, message: The transition errored, detail: TypeError: this.parent.parameters is not a function)
$defaultErrorHandler @ angular-ui-router.js?compile=false:7302
(anonymous) @ angular-ui-router.js?compile=false:7634
(anonymous) @ angular.js?compile=false:formatted:4135
$digest @ angular.js?compile=false:formatted:4547
$apply @ angular.js?compile=false:formatted:4657
(anonymous) @ angular.js?compile=false:formatted:460
invoke @ angular.js?compile=false:formatted:1214
c @ angular.js?compile=false:formatted:459
Wc @ angular.js?compile=false:formatted:473
e.bootstrap @ ocLazyLoad.js?compile=false:formatted:409
(anonymous) @ app-core.js?compile=false:1259
e @ jquery.js?compile=false:formatted:1428
t @ jquery.js?compile=false:formatted:1439
setTimeout (async)
(anonymous) @ jquery.js?compile=false:formatted:1449
c @ jquery.js?compile=false:formatted:1324
fireWith @ jquery.js?compile=false:formatted:1377
fire @ jquery.js?compile=false:formatted:1381
c @ jquery.js?compile=false:formatted:1324
fireWith @ jquery.js?compile=false:formatted:1377
ready @ jquery.js?compile=false:formatted:1531
B @ jquery.js?compile=false:formatted:1518
angular-ui-router.js?compile=false:7304 TypeError: this.parent.parameters is not a function
at Object.StateObject.parameters (angular-ui-router.js?compile=false:3014)
at Object.StateObject.parameters (angular-ui-router.js?compile=false:3014)
at Transition.error (angular-ui-router.js?compile=false:4430)
at Transition.valid (angular-ui-router.js?compile=false:4403)
at invalidTransitionHook (angular-ui-router.js?compile=false:7037)
at invokeCallback (angular-ui-router.js?compile=false:3445)
at TransitionHook.invokeHook (angular-ui-router.js?compile=false:3450)
at Function.TransitionHook.invokeHooks (angular-ui-router.js?compile=false:3418)
at Transition.run (angular-ui-router.js?compile=false:4392)
at StateService.transitionTo (angular-ui-router.js?compile=false:7638)
$defaultErrorHandler @ angular-ui-router.js?compile=false:7304
(anonymous) @ angular-ui-router.js?compile=false:7634
(anonymous) @ angular.js?compile=false:formatted:4135
$digest @ angular.js?compile=false:formatted:4547
$apply @ angular.js?compile=false:formatted:4657
(anonymous) @ angular.js?compile=false:formatted:460
invoke @ angular.js?compile=false:formatted:1214
c @ angular.js?compile=false:formatted:459
Wc @ angular.js?compile=false:formatted:473
e.bootstrap @ ocLazyLoad.js?compile=false:formatted:409
(anonymous) @ app-core.js?compile=false:1259
e @ jquery.js?compile=false:formatted:1428
t @ jquery.js?compile=false:formatted:1439
setTimeout (async)
(anonymous) @ jquery.js?compile=false:formatted:1449
c @ jquery.js?compile=false:formatted:1324
fireWith @ jquery.js?compile=false:formatted:1377
fire @ jquery.js?compile=false:formatted:1381
c @ jquery.js?compile=false:formatted:1324
fireWith @ jquery.js?compile=false:formatted:1377
ready @ jquery.js?compile=false:formatted:1531
B @ jquery.js?compile=false:formatted:1518
2angular.js?compile=false:formatted:3736 Possibly unhandled rejection: {"$id":0,"type":6,"message":"The transition errored","detail":{}}
(anonymous) @ angular.js?compile=false:formatted:3736
(anonymous) @ angular.js?compile=false:formatted:2885
g @ angular.js?compile=false:formatted:4115
$digest @ angular.js?compile=false:formatted:4547
$apply @ angular.js?compile=false:formatted:4657
(anonymous) @ angular.js?compile=false:formatted:460
invoke @ angular.js?compile=false:formatted:1214
c @ angular.js?compile=false:formatted:459
Wc @ angular.js?compile=false:formatted:473
e.bootstrap @ ocLazyLoad.js?compile=false:formatted:409
(anonymous) @ app-core.js?compile=false:1259
e @ jquery.js?compile=false:formatted:1428
t @ jquery.js?compile=false:formatted:1439
setTimeout (async)
(anonymous) @ jquery.js?compile=false:formatted:1449
c @ jquery.js?compile=false:formatted:1324
fireWith @ jquery.js?compile=false:formatted:1377
fire @ jquery.js?compile=false:formatted:1381
c @ jquery.js?compile=false:formatted:1324
fireWith @ jquery.js?compile=false:formatted:1377
ready @ jquery.js?compile=false:formatted:1531
B @ jquery.js?compile=false:formatted:1518
angular-ui-router.js?compile=false:7302 Transition Rejection($id: 1 type: 6, message: The transition errored, detail: TypeError: this.parent.parameters is not a function)
$defaultErrorHandler @ angular-ui-router.js?compile=false:7302
(anonymous) @ angular-ui-router.js?compile=false:7634
(anonymous) @ angular.js?compile=false:formatted:4135
$digest @ angular.js?compile=false:formatted:4547
$apply @ angular.js?compile=false:formatted:4657
(anonymous) @ angular.js?compile=false:formatted:5152
Yg.completeTask @ angular.js?compile=false:formatted:5035
(anonymous) @ angular.js?compile=false:formatted:1458
setTimeout (async)
Fg.h.defer @ angular.js?compile=false:formatted:1456
f @ angular.js?compile=false:formatted:5143
v @ ct-ui-router-extras.js?compile=false:24
(anonymous) @ angular.js?compile=false:formatted:4135
$digest @ angular.js?compile=false:formatted:4547
$apply @ angular.js?compile=false:formatted:4657
(anonymous) @ angular.js?compile=false:formatted:460
invoke @ angular.js?compile=false:formatted:1214
c @ angular.js?compile=false:formatted:459
Wc @ angular.js?compile=false:formatted:473
e.bootstrap @ ocLazyLoad.js?compile=false:formatted:409
(anonymous) @ app-core.js?compile=false:1259
e @ jquery.js?compile=false:formatted:1428
t @ jquery.js?compile=false:formatted:1439
setTimeout (async)
(anonymous) @ jquery.js?compile=false:formatted:1449
c @ jquery.js?compile=false:formatted:1324
fireWith @ jquery.js?compile=false:formatted:1377
fire @ jquery.js?compile=false:formatted:1381
c @ jquery.js?compile=false:formatted:1324
fireWith @ jquery.js?compile=false:formatted:1377
ready @ jquery.js?compile=false:formatted:1531
B @ jquery.js?compile=false:formatted:1518
angular-ui-router.js?compile=false:7304 TypeError: this.parent.parameters is not a function
at Object.StateObject.parameters (angular-ui-router.js?compile=false:3014)
at Object.StateObject.parameters (angular-ui-router.js?compile=false:3014)
at Transition.error (angular-ui-router.js?compile=false:4430)
at Transition.valid (angular-ui-router.js?compile=false:4403)
at invalidTransitionHook (angular-ui-router.js?compile=false:7037)
at invokeCallback (angular-ui-router.js?compile=false:3445)
at TransitionHook.invokeHook (angular-ui-router.js?compile=false:3450)
at Function.TransitionHook.invokeHooks (angular-ui-router.js?compile=false:3418)
at Transition.run (angular-ui-router.js?compile=false:4392)
at StateService.transitionTo (angular-ui-router.js?compile=false:7638)
$defaultErrorHandler @ angular-ui-router.js?compile=false:7304
(anonymous) @ angular-ui-router.js?compile=false:7634
(anonymous) @ angular.js?compile=false:formatted:4135
$digest @ angular.js?compile=false:formatted:4547
$apply @ angular.js?compile=false:formatted:4657
(anonymous) @ angular.js?compile=false:formatted:5152
Yg.completeTask @ angular.js?compile=false:formatted:5035
(anonymous) @ angular.js?compile=false:formatted:1458
setTimeout (async)
Fg.h.defer @ angular.js?compile=false:formatted:1456
f @ angular.js?compile=false:formatted:5143
v @ ct-ui-router-extras.js?compile=false:24
(anonymous) @ angular.js?compile=false:formatted:4135
$digest @ angular.js?compile=false:formatted:4547
$apply @ angular.js?compile=false:formatted:4657
(anonymous) @ angular.js?compile=false:formatted:460
invoke @ angular.js?compile=false:formatted:1214
c @ angular.js?compile=false:formatted:459
Wc @ angular.js?compile=false:formatted:473
e.bootstrap @ ocLazyLoad.js?compile=false:formatted:409
(anonymous) @ app-core.js?compile=false:1259
e @ jquery.js?compile=false:formatted:1428
t @ jquery.js?compile=false:formatted:1439
setTimeout (async)
(anonymous) @ jquery.js?compile=false:formatted:1449
c @ jquery.js?compile=false:formatted:1324
fireWith @ jquery.js?compile=false:formatted:1377
fire @ jquery.js?compile=false:formatted:1381
c @ jquery.js?compile=false:formatted:1324
fireWith @ jquery.js?compile=false:formatted:1377
ready @ jquery.js?compile=false:formatted:1531
B @ jquery.js?compile=false:formatted:1518
2angular.js?compile=false:formatted:3736 Possibly unhandled rejection: {"$id":1,"type":6,"message":"The transition errored","detail":{}}

![image](https://user-images.githubusercontent.com/8745632/147810880-af290292-29fa-431d-93c7-7300dfbae7d9.png)

![image](https://user-images.githubusercontent.com/8745632/147811040-ca1bbaa7-8944-462e-9f95-b5932c3b39c3.png)

Can somebody tell me the solution?

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.