Upgrading from NativeScript Core from v5 - Cannot Navigate to page #9655
Replies: 4 comments
-
I am also facing the same problem. |
Beta Was this translation helpful? Give feedback.
-
@SaadmanChowdhury @samiul-gtmi please provide more context in order for anyone to be able to help - code snippets, stack-traces etc. |
Beta Was this translation helpful? Give feedback.
-
The breaking changes between 5 and 8 are the key to upgrade successfully. |
Beta Was this translation helpful? Give feedback.
-
You likely need to use Frame.topmost()
When you get to later versions of {N} the first line becomes
|
Beta Was this translation helpful? Give feedback.
-
Good evening,
I'm trying to upgrade a version 5 NativeScript project to version 8.
I began by first upgrading the project to 6,
and then testing if all of the functionalities work before moving on to upgrading it further.
After TNS migrate, and resolving a few minor issues, I hit a snag.
After the login screen, when trying to navigate to another screen, the topmost() returns undefined.
I've used the debugger and realized that the frame_stack_1 in frame-common.js is empty.
I think the reason is that the frames are not being pushed into frame_stack_1 when the app loads.
I checked out this guide
https://nativescripting.com/posts/missing-frame-and-page
platformNativeScriptDynamic({ createFrameOnBootstrap: true }).bootstrapModule( AppModule );
but it is for angular.
Is there was a similar method of making it work for NativeScript Core?
Beta Was this translation helpful? Give feedback.
All reactions