Comments (17)
This is the official blog post about upgrading the Angular version to 12. https://blog.nativescript.org/nativescript-angular-12/index.html
from reserbiz.
Update Angular Version refer to this page https://www.npmjs.com/package/@angular/cli#updating-angular-cli
from reserbiz.
Use this reference to check the node compatibility version with angular https://gist.github.com/LayZeeDK/c822cc812f75bb07b7c55d07ba2719b3
from reserbiz.
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.
from reserbiz.
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.
from reserbiz.
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.
from reserbiz.
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.
from reserbiz.
Found an issue on @nativescript/firebase plugin. See thread EddyVerbruggen/nativescript-plugin-firebase#1873.
from reserbiz.
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
from reserbiz.
The application is now running!
There are still issues on other pages. These things need to be documented and fixed.
from reserbiz.
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
from reserbiz.
I have discovered some other issues that arises after the migration to the new version and these are the following:
- Since the https://www.npmjs.com/package/nativescript-cfalert-dialog. plugin has been discontinued, we have to find to refactor both
alert
andconfirm
function below so all codes using these functions will be fixed.
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
-
The nativescript-websockets has been deprecated and we should replace it with @master.technology/websockets.
-
The
payload
property no longer exists in the newer version of @nativescript/local-notifications. This has to be investigated. -
There is a problem on nativescript-ui-dataform. Updating the form source object makes the UI resets. See attached video recordings below. I have asked the Nativescript community in Discord about the issue. Hoping that someone can help me resolve the issue.
bandicam.2022-06-08.18-58-06-848.mp4
- Another nativescript-ui-dataform related problem. There seems to be a problem with
Switch
, any form where this control exists makes the app crashes.
from reserbiz.
I'm done refactoring dialog.service.ts file. I have instead use https://docs.nativescript.org/interaction.html#dialogs for both alert
and confirm
dialogs.
from reserbiz.
The missing payload
property on https://www.npmjs.com/package/@nativescript/local-notifications is now fixed. I have upgraded the version to @6.0.0.
from reserbiz.
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.
from reserbiz.
At this moment, I have decided to not continue replacing the nativescript-dataform
with angular reactive forms. Since the problem only exists with Switch
control, I instead replaced all Switch
control with Picker
control with Yes and No options.
from reserbiz.
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.
from reserbiz.
Related Issues (20)
- Identify the problems building the Reserbiz on IOS
- Introduce Notifications page HOT 1
- Development of Tenants Portal Account
- Introduce Tenant Payments Approval Process
- Introduced account credentials settings on Tenants Information Page.
- Update Login Page to allow tenants to access Reserbiz.
- Show/Hide Reserbiz pages based on user credentials type (Admin or Tenant)
- Separate Statement of Accounts for Utility and Rental Bills HOT 1
- Modification on creating statement of accounts (Manual and Scheduled Generation). HOT 1
- Modification on Statement of account list panel HOT 1
- Modification on Statement of account details page HOT 1
- Modification on Sending Statement of account details via SMS and Email HOT 1
- Modification on Payment list page HOT 1
- Update Error Log Mechanism HOT 1
- Term Details: Introduce auto-send generated statement of account setting HOT 1
- Introduce integration testing
- Upgrade .NET version 5.0 to 6.0 HOT 3
- Create back-end project HOT 2
- Create angular web project
- Introduce Transferring or converting Product Stock inventory to other items
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reserbiz.