Skip to content

After upgraded to NativeScript 3.2.0 - TypeError: Cannot read property 'reusedRoute' of undefined #992

@NickIliev

Description

@NickIliev

From @shabib3 on September 7, 2017 22:16

Did you verify this is a real problem by searching [Stack Overflow]

Yes... I found this but this didn't work for me...plus it happens with the upgrading for the new version which not happened before

Tell us about the problem

After I upgraded the NativeScript to the new 3.2.0 version... It throw me the following error right after navigate with clearHistory: true property:
TypeError: Cannot read property 'reusedRoute' of undefined

JS: ERROR Error: Uncaught (in promise): TypeError: Cannot read property 'reusedRoute' of undefined
JS: TypeError: Cannot read property 'reusedRoute' of undefined
JS:     at PageRouterOutlet.activateOnGoBack (file:///data/data/com.staccato.app/files/app/tns_modules/nativescript-angular/router/page-router-outlet.js:177:18)
JS:     at PageRouterOutlet.activateWith (file:///data/data/com.staccato.app/files/app/tns_modules/nativescript-angular/router/page-router-outlet.js:136:18)
JS:     at ActivateRoutes.placeComponentIntoOutlet (file:///data/data/com.staccato.app/files/app/tns_modules/@angular/router/bundles/router.umd.js:4526:16)
JS:     at ActivateRoutes.activateRoutes (file:///data/data/com.staccato.app/files/app/tns_modules/@angular/router/bundles/router.umd.js:4507:26)
JS:     at file:///data/data/com.staccato.app/files/app/tns_modules/@angular/router/bundles/router.umd.js:4443:58
JS:     at Array.forEach (native)
JS:     at ActivateRoutes.activateChildRoutes (file:///data/data/com.staccato.app/files/app/tns_modules/@angular/router/bundles/router.umd.js:4443:29)
JS:     at ActivateRoutes.activate (file:///data/data/com.staccato.app/files/app/tns_modules/@angular/router/bundles/router.umd.js:4417:14)
JS:     at file:///data/data/com.staccato.app/files/app/tns_modules/@angular/router/bundles/router.umd.js:4034:22
JS:     at SafeSubscriber._next (file:///data/data/com.staccato.app/files/app/tns_modules/rxjs/Observable.js:110:21)
JS:     at SafeSubscriber.__tryOrSetError (file:///data/data/com.staccato.app/files/app/tns_modules/rxjs/Subscriber.js:247:16)
JS:     at SafeSubscriber.next (file:///data/data/com.staccato.app/files/app/tns_modules/rxjs/Subscriber.js:187:27)
JS:     at Subscriber._next (file:///data/data/com.staccato.app/files/app/tns_modules/rxjs/Subscriber.js:125:26)
JS:     at Subscriber.next (file:///data/data/com.staccato.app/files/app/tns_modules/rxjs/Subscriber.js:89:18)
JS:     at MapSubscriber._next (file:///data/data/com.staccato.app/files/app/tns_modules/rxjs/operator/map.js:83:26)

Which platform(s) does your issue occur on?

Android

Please provide the following version numbers that your issue occurs with:

  • CLI: 3.2.0
  • Cross-platform modules: 3.2.0

Copied from original issue: NativeScript/NativeScript#4813

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions