I have my android app using Ionic 6 and Capacitor 3. I started a new version for my app so I copied all my project to a new folder. The VS Code Ionic extension recommends a migration to Capacitor 4. So I did that. But after the migration the app stopped working. When I try to debug using the following commands:
export NODE_OPTIONS=--openssl-legacy-provider
ionic cap run android -l --external
Now the app only show this image:
What it means? I have no errors nor warnings.
ionic info
[WARN] Error loading @capacitor/ios package.json: Error: Cannot find module ‘@capacitor/ios/package’
Require stack:
- /usr/local/lib/node_modules/@ionic/cli/lib/project/index.js
- /usr/local/lib/node_modules/@ionic/cli/lib/index.js
- /usr/local/lib/node_modules/@ionic/cli/index.js
- /usr/local/lib/node_modules/@ionic/cli/bin/ionic
Ionic info
Ionic CLI : 6.20.6 (/usr/local/lib/node_modules/@ionic/cli)
Ionic Framework : @ionic/angular 6.0.16
@angular-devkit/build-angular : 12.1.4
@angular-devkit/schematics : 12.2.18
@angular/cli : 12.1.4
@ionic/angular-toolkit : 4.0.0
Capacitor:
Capacitor CLI : 4.6.1
@capacitor/android : 4.6.1
@capacitor/core : 4.6.1
@capacitor/ios : not installed
Utility:
cordova-res (update available: 0.15.4) : 0.15.3
native-run : 1.7.1
System:
NodeJS : v18.7.0 (/usr/bin/node)
npm : 9.2.0
OS : Linux 5.19
Any advice?
Thanks