I am developing an application in ionic 5 and I encounter an error when I run the command: ionic cordova platform add android.
Here is the error message: [ERROR] An error occurred while running subprocess cordova-res. Can anyone help me?
Ionic:
Ionic CLI : 6.11.0 (C:\Users\user\AppData\Roaming\npm\node_modules#ionic\cli)
Ionic Framework : #ionic/angular 5.3.1
#angular-devkit/build-angular : 0.901.12
#angular-devkit/schematics : 9.1.12
#angular/cli : 9.1.12
#ionic/angular-toolkit : 2.3.3
Cordova:
Cordova CLI : 9.0.0 (cordova-lib#9.0.1)
Cordova Platforms : browser 6.0.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 4.2.1, (and 8 other plugins)
Related
Can anyone tell me what is the difference between the Ionic Version and Ionic CLI version? I heard that the latest version of Ionic is ionic 5. is it possible I can create an Ionic-Vue app with ionic 5?
These are the details:
Ionic:
Ionic CLI : 6.11.0
Utility:
cordova-res : not installed
native-run : not installed
System:
NodeJS : v12.18.3
npm : 6.14.6
OS : Windows 10
C:\MobileAppProjects\reddit-clone>vue --version
#vue/cli 4.5.4
im having a problem at run time only when build with --prod flag
im using vscode with
Ionic:
Ionic CLI : 5.2.5
(C:\Users\elile\AppData\Roaming\npm\node_modules\ionic)
Ionic Framework : #ionic/angular 4.3.1
#angular-devkit/build-angular : 0.13.8
#angular-devkit/schematics : 7.3.8
#angular/cli : 7.3.9
#ionic/angular-toolkit : 1.5.1
Cordova:
Cordova CLI : not installed
Cordova Platforms : not available
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 4.1.1, (and 9 other plugins)
Utility:
cordova-res : 0.6.0
native-run : 0.2.8
System:
Android SDK Tools : 26.1.1 (D:\android\sdk)
NodeJS : v10.15.3 (C:\Program Files\nodejs\node.exe)
npm : 6.4.1
OS : Windows 10
Somewhere you have used Scroll View module but not put it into the parent modules declarations.
Check every place that you have used Scroll View and see if the module is defined in that parent module.
update
if its an issue with the packages then I would generate a new app and then either copy the package versions back to your current broken app, or just migrate the app into the new app.
The plugin breaks with ionic 4, ionic-angular became #ionic/angular.
If you have used "ionic-angular" library for import then changed for ionic 4
Change "ionic-angular" to "#ionic/angular"
Like that : import { Events } from '#ionic/angular';
I've an issue with a vue/capacitor/Ionic 4 vanilla application when running electron and on android.
The error is as follow :
Uncaught TypeError: Cannot redefine property: queue
ionicpwaelements.rdkmyppq.js:122
Ionic:
ionic (Ionic CLI) : 4.12.0
System:
NodeJS : v10.15.3
npm : 6.9.0
OS : macOS Mojave
Any idea the cause of this error ?
Thanks In Advance
App is failing to build on iOS with the following warnings:
[WARN] : Titanium 7.0.0 deprecates the legacy UI-execution on Kroll-Thread in favor of the Main-Thread.
[WARN] : The legacy execution will be removed in Titanium SDK 8.0.0.
Here is the environment:
Node.js Version = 8.9.1
npm Version = 5.5.1
CLI Version = 5.1.1
SDK Version = 7.5.1.GA
I can't figure out how to use livereload with ionic 4 and Capacitor on ios.
I'm running this command
ionic cap run ios -l which add my local ip address to capacitor.config.json.
however, it seems like I'm missing something in here.
Note: according to Provide live-reload functionality #3130 this should work.
my environment setup:
Ionic:
ionic (Ionic CLI) : 4.1.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : #ionic/angular 4.0.0-beta.2
#angular-devkit/core : 0.7.3
#angular-devkit/schematics : 0.7.3
#angular/cli : 6.1.3
#ionic/ng-toolkit : 1.0.6
#ionic/schematics-angular : 1.0.5
Capacitor:
capacitor (Capacitor CLI) : 1.0.0-beta.6
#capacitor/core : 1.0.0-beta.6
System:
NodeJS : v9.10.1 (/usr/local/bin/node)
npm : 6.4.0
OS : macOS High Sierra
For those still struggling with his try:
ionic capacitor run ios --livereload --external
It will open Xcode automatically. Run your project and livereload should work.
Make sure that you are connected to the same WiFi on your device and computer.
Thanks to Julio Cesar form ionic team for pointing this out, this turned to be a bug in Capacitor which has a PR already github.com/ionic-team/capacitor/pull/741 and github.com/ionic-team/capacitor/pull/742
Your assets may need to be rebuilt & plugins resynced.
npm run build
ionic cap sync
Sync will tell you if your Capacitor version matches your platform versions and if there are any issues with plugins.
Then livereload run with:
ANDROID:
ionic cap run android -l --external
iOS:
ionic cap run ios -l --external
It didn't work for me as well until I added "cleartext": true to capacitor.config.json under server. Like this:
"server": {
"url": "http://192.168.1.68:8100",
"cleartext": true
}
This is explained in the official documentation under Using with Framework CLIs.