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

Aberta
#3,842 0 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
13.4k
Forks
2.9k
Métricas de merge de PRs
Nenhum PR com merge em 30d

Descrição

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?

Guia de contribuição

Abrir o guia de contribuição

Avaliação

Esta issue ainda não foi avaliada.

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.