Our company is in the process of moving all ionic apps to native mobile. I get the lucky assignment of maintaining the old ionic v3 apps for now. I need to do a prod move. Haven’t done one in six months. Also moving from linux to windows. (For android releases).
Seeing what I can update now and still be on ionic 3?
I had problems with this cordova-android-support-gradle-release plugin, which shouldn’t be needed anymore?
Tried updating Cordova to 9 but getting this problem
Can I leave angular code the same, leave ionic-native the same, but update my other plugins?
Or is this all or nothing?
Thanks for the info.
Is capacitor free? I haven’t looked much into that.
Update on where I’m at – I updated Cordova to v10 and cordova-android to 9.1 I think.
After sorting out some things with AndroidX I was able to do a dev build. I thought I was good, but when I do a prod build (with the flag --prod) was getting errors. I should have left it there…
Decided to try to go down a version of Cordova and android see if that would work, in that process I deleted the node_modules folder and was trying to install ionic 3. npm install -g ionic@3
But when I try to run the code in the browser getting errors
Cannot find module ‘ionic-angular’.
and Cannot find module ‘@ionic-native/android-fingerprint-auth’.
So now I don’t even know how to get ionic 3 installed on windows again.
Any suggestions-- help?
Here is my ionic info on windows 10. Looks like its all installed correctly
@mhartington gave you two suggestions. If you’re taking the “keep things where they are” option, I would revert using version control to exactly where you were before you started touching anything. If you’re upgrading, you don’t want “ionic-angular”. It’s obsoleted by @ionic/angular.
Back to the problem I had before. Building a dev Android version works fine. Building a prod (–prod flag)version builds the APK but when I try to run it, I get this error as the app is loading. The app login screen does come up but buttons don’t work, they just keep giving the same error.
vendor.js:formatted:3023 ERROR Error: StaticInjectorError[l]:
StaticInjectorError[l]:
NullInjectorError: No provider for l!
at t.get (vendor.js:formatted:2950)
at vendor.js:formatted:271
at f (vendor.js:formatted:274)
at t.get (vendor.js:formatted:2993)
at vendor.js:formatted:271
at f (vendor.js:formatted:274)
at t.get (vendor.js:formatted:2993)
at te (vendor.js:formatted:1151)
at t.get (vendor.js:formatted:5582)
at Ee (vendor.js:formatted:1472)
I think there is a way to build for prod but not obfuscate? so I can get more info?
Thanks again for your help.
Hey, is there a particular reason why you are moving to windows?
You can develop Android releases while on linux.
If it’s a personal choice, all good. If you feel Android is forcing you, perhaps it is not that way.
Cheers,
Gustavo.