-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgrade Nativescript 7.0 to 8.0 (including other dependencies) #39
Comments
This is the official blog post about upgrading the Angular version to 12. https://blog.nativescript.org/nativescript-angular-12/index.html |
Update Angular Version refer to this page https://www.npmjs.com/package/@angular/cli#updating-angular-cli |
Use this reference to check the node compatibility version with angular https://gist.github.com/LayZeeDK/c822cc812f75bb07b7c55d07ba2719b3 |
The current version of @nativescript/schematics which is responsible for code sharing feature is not yet updated to support angular version 12 and nativescript core 8. Its hard to manually update the version. I think we have to wait until the @nativescript/schematics plugin is updated. |
Another solution to be able to proceed with the upgrade is to convert the reserbiz project to the regular nativescript project, the one without code sharing feature. Besides I don't think I will create a web version of the Resebiz. Only Android and iOS versions. For now, I will try this solution. |
Unfortunately, the @nativescript/schematics has been deprecated https://www.npmjs.com/package/@nativescript/schematics. This means, the best solution that I have is to proceed with the solution from the previous comment. |
Instead of trying to convert the current project to a non-shared version of Nativescript, I decided to create a new fresh nativescript application and start migrating files from the old project to this new project. To be honest, It will take some time to fully migrate the entire application. As much as possible, document all steps pertaining to the migration process. |
Found an issue on @nativescript/firebase plugin. See thread EddyVerbruggen/nativescript-plugin-firebase#1873. |
I discontinued using the plugin https://www.npmjs.com/package/nativescript-cfalert-dialog. I replaced plugin https://www.npmjs.com/package/nativescript-appversion with https://www.npmjs.com/package/@nativescript/appversion |
The application is now running! There are still issues on other pages. These things need to be documented and fixed. |
Looks like Tabs component is no longer supported on the version 8 of nativescript. This needs to be replaced by TabView component instead https://docs.nativescript.org/ui-and-styling.html#tabview |
I have discovered some other issues that arises after the migration to the new version and these are the following:
Reserbiz/Reserbiz/src/app/_services/dialog.service.ts Lines 19 to 43 in e03c769
Reserbiz/Reserbiz/src/app/_services/dialog.service.ts Lines 45 to 70 in e03c769
bandicam.2022-06-08.18-58-06-848.mp4
|
I'm done refactoring dialog.service.ts file. I have instead use https://docs.nativescript.org/interaction.html#dialogs for both |
The missing |
I have started refactoring some places which uses nativescript-ui-dataform. I decided to replace it with angular reactive forms. So far, I'm almost done refactoring the add term details form. |
At this moment, I have decided to not continue replacing the |
At this moment, I could say that the migration of the app from using the code sharing structure to the Nativescript standard project structure is now completed! Moving this issue to close now. |
Recently, the nativescript framework has been upgraded to version 8.0 https://blog.nativescript.org/nativescript-8-announcement/.
I think we have to make the necessary upgrade on the app as well but we will wait until the latest version will become stable (in couple of months maybe). I know nativescript community releases major version every 6 months, not really sure though, I need to research more about this.
I suggest to do more research how to upgrade the nativescript version to the latest one used by the app and also don't forget to check other dependencies' version.
The text was updated successfully, but these errors were encountered: