After upgraded to NativeScript 3.2.0 - TypeError: Cannot read property 'reusedRoute' of undefined
See original GitHub issueDid 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
Issue Analytics
- State:
- Created 6 years ago
- Reactions:3
- Comments:6 (1 by maintainers)
Top Results From Across the Web
After upgraded to NativeScript 3.2.0 - TypeError: Cannot read ...
After I upgraded the NativeScript to the new 3.2.0 version. ... TypeError: Cannot read property 'reusedRoute' of undefined.
Read more >Cannot read property '0' of undefined after upgrade: Angular ...
I actually made it working, the problem seems to be related to the versions of angular, nativescript and webpack used.
Read more >Nativescript Firebase plugin - “cannot read property of null ...
After upgrading the project, I am facing a major issue with all firebase queries. **JS: Error in firebase.query: TypeError: Cannot read property ......
Read more >an error was thrown in afterall cannot read property - You.com
My test fail time to time ant i get the following error: An error was thrown in afterAll TypeError: Cannot read property 'ids'...
Read more >Use A Side Drawer And Feature Rich List View In A ...
"TypeError: Cannot read property 'setLayoutParams' of undefined" followed by tons of cryptic messages. Solved by : updating the package.json ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
@shabib3
After some tryings… npm uninstall nativescript-angular
npm install nativescript-angular@4.3.0-2017-9-7-3 (latest, but didn’t worked) npm install nativescript-angular@4.3.0-2017-8-30-3 (worked so far)
I’m going to do more tests, but I definitely recommend you to try with nativescript-angular@4.3.0-2017-8-30-3.
Let me know if it helped you.
Thanks!
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.