**my package.json
**
{
"name": "ionic-app-base",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"#angular/common": "2.4.8",
"#angular/compiler": "2.4.8",
"#angular/compiler-cli": "2.4.8",
"#angular/core": "2.4.8",
"#angular/forms": "2.4.8",
"#angular/http": "2.4.8",
"#angular/platform-browser": "2.4.8",
"#angular/platform-browser-dynamic": "2.4.8",
"#angular/platform-server": "2.4.8",
"#ionic-native/action-sheet": "^3.4.4",
"#ionic-native/app-version": "^3.1.0",
"#ionic-native/app-update": "^3.9.2",
"#ionic-native/barcode-scanner": "^3.4.4",
"#ionic-native/camera": "^3.4.4",
"#ionic-native/camera-preview": "^3.5.0",
"#ionic-native/core": "^3.7.0",
"#ionic-native/date-picker": "^3.4.4",
"#ionic-native/file": "^3.4.4",
"#ionic-native/file-opener": "^3.8.0",
"#ionic-native/image-picker": "^3.4.4",
"#ionic-native/keyboard": "^3.4.4",
"#ionic-native/social-sharing": "^3.4.4",
"#ionic-native/transfer": "^3.4.4",
"#ionic/storage": "2.0.0",
"action-sheet": "^1.0.5",
"chart.js": "^2.5.0",
"intl": "^1.2.5",
"ion2-calendar": "^1.0.6",
"ionic-angular": "2.2.0",
"ionic-image-loader": "^3.2.0",
"ionic-native": "2.4.1",
"ionic2-city-picker": "^0.0.4",
"ionicons": "3.0.0",
"jsqr": "^0.2.2",
"lodash": "^4.17.4",
"moment": "^2.18.1",
"pouchdb": "^6.1.2",
"pouchdb-adapter-cordova-sqlite": "^2.0.2",
"rxjs": "5.0.1",
"setimmediate": "^1.0.5",
"sw-toolbox": "3.4.0",
"uuid": "^3.0.1",
"zone.js": "0.7.2"
},
"devDependencies": {
"#ionic/app-scripts": "1.3.7",
"#ionic/cli-plugin-ionic-angular": "1.3.0",
"typescript": "2.3.3"
}
}
ionic info
D:\03-bak\baiduoke>ionic info
global packages:
#ionic/cli-utils : 1.4.0
Cordova CLI : not installed
Ionic CLI : 3.4.0
local packages:
#ionic/app-scripts : 1.3.7
#ionic/cli-plugin-cordova : 1.4.0
#ionic/cli-plugin-ionic-angular : 1.3.0
Cordova Platforms : none
Ionic Framework : ionic-angular 2.2.0
System:
Node : v6.10.0
OS : Windows 10
Xcode : not installed
ios-deploy : not installed
ios-sim : not installed
npm : 5.0.3
my errors i've got following errors when run command
D:\03-bak\baiduoke>cordova platform add android
Using cordova-fetch for cordova-android#~6.2.2
Error: Failed to fetch platform cordova-android#~6.2.2
Probably this is either a connection problem, or platform spec is incorrect.
Check your connection and platform name/version/URL.
Error: cmd: Command failed with exit code 1 Error output:
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\kid\AppData\Roaming\npm-cache\_logs\2017-06-13T08_58_46_055Z-debug.log`
I've got above errors when i run cordova platform add android or cordova plugin ls
Cordova CLI : not installed
You will need to install cordova as well for this to work. Ionic cli uses cordova cli as well.
Check installation docs.
Do:
npm install cordova -g
Then try your command.
Related
I have an ionic project. I can't run the project on my own device with --livereload. I get the following error. How can I fix this error?
Error:
[ng] This version of CLI is only compatible with Angular versions ^13.0.0 || ^13.3.0-rc.0,
[ng] but Angular version 15.1.2 was found instead.
[ng]
[ng] Please visit the link below to find instructions on how to update Angular.
[ng] https://update.angular.io/
[ng]
[ERROR] ng has unexpectedly closed (exit code 3).
Ionic Info:
Ionic:
Ionic CLI : 6.20.8 (C:\Users\xxxxxxx\AppData\Roaming\npm\node_modules\#ionic\cli)
Ionic Framework : #ionic/angular 6.4.1
#angular-devkit/build-angular : 15.1.1
#angular-devkit/schematics : 15.1.3
#angular/cli : 15.1.3
#ionic/angular-toolkit : 7.0.0
Cordova:
Cordova CLI : 11.1.0
Cordova Platforms : android 10.1.2, ios 6.2.0
Cordova Plugins : cordova-plugin-ionic-keyboard 2.2.0, cordova-plugin-ionic-webview 5.0.0, (and 15 other plugins)
Utility:
cordova-res : 0.15.4
native-run : 1.7.1
System:
Android SDK Tools : 26.1.1 (C:\Users\xxxxxxx\AppData\Local\Android\Sdk)
NodeJS : v18.13.0 (C:\Program Files\nodejs\node.exe)
npm : 9.4.0
OS : Windows 10
Package.json:
"dependencies": {
"#angular/animations": "^15.1.2",
"#angular/cdk": "^15.1.2",
"#angular/common": "^15.1.2",
"#angular/core": "^15.1.2",
"#angular/forms": "^15.1.2",
"#angular/platform-browser": "^15.1.2",
"#angular/platform-browser-dynamic": "^15.1.2",
"#angular/router": "^15.1.2",
},
"devDependencies": {
"#angular-devkit/build-angular": "^15.1.0",
"#angular-eslint/builder": "^15.1.0",
"#angular-eslint/eslint-plugin": "15.1.0",
"#angular-eslint/eslint-plugin-template": "~15.1.0",
"#angular-eslint/template-parser": "15.1.0",
"#angular/cli": "^15.1.3",
"#angular/compiler": "^15.1.2",
"#angular/compiler-cli": "^15.1.2",
"#angular/language-service": "^15.1.2",
"#types/jasmine": "~3.6.0",
"#types/jasminewd2": "~2.0.3",
"#types/node": "^12.11.1",
"#typescript-eslint/eslint-plugin": "5.48.1",
"#typescript-eslint/parser": "5.48.1",
"eslint": "^7.6.0",
"eslint-plugin-import": "2.22.1",
"eslint-plugin-jsdoc": "30.7.6",
"eslint-plugin-prefer-arrow": "1.2.2",
"jasmine-core": "~3.8.0",
"jasmine-spec-reporter": "~5.0.0",
"karma": "~6.3.2",
"karma-chrome-launcher": "~3.1.0",
"karma-coverage": "~2.0.3",
"karma-coverage-istanbul-reporter": "~3.0.2",
"karma-jasmine": "~4.0.0",
"karma-jasmine-html-reporter": "^1.5.0",
"phonegap-plugin-barcodescanner": "^8.1.0",
"protractor": "~7.0.0",
"ts-node": "~8.3.0",
"typescript": "4.9.4"
}
I deleted the node_modules folder and tried
npm install
After that I tried
ng update
I tried
npm install --save-dev #angular/cli#latest --f
but none of them worked.
I am trying to build my ionic 3 project for the android platform. I am working on windows 10. When I run the following command : ionic cordova build android --prod --release, I get this error:
Ineffective mark-compacts near heap limit Allocation failed - JavaScript heap out of memory
Here is the screen shot corresponding to the error
Here is the result of the ionic info command
Ionic:
ionic (Ionic CLI) : 4.7.0 (C:\Users\HOLLY SPIRIT\AppData\Roaming\npm\node_modules\ionic) Ionic Framework : ionic-angular 3.9.2 #ionic/app-scripts : 3.2.1
Cordova:
cordova (Cordova CLI) : 7.1.0 Cordova Platforms : android
6.4.0 Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 1.2.1, (and 22 other plugins)
System:
NodeJS : v10.15.0 (C:\Program Files\nodejs\node.exe) npm :
6.4.1 OS : Windows 10
And here is the content of package.json
{
"name": "app name",
"version": "2.0.1",
"author": "auhtors name",
"homepage": "website url",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"#angular/animations": "5.2.10",
"#angular/common": "5.2.10",
"#angular/compiler": "5.2.10",
"#angular/compiler-cli": "5.2.10",
"#angular/core": "5.2.10",
"#angular/fire": "^5.0.0",
"#angular/forms": "5.2.10",
"#angular/http": "5.2.10",
"#angular/platform-browser": "5.2.10",
"#angular/platform-browser-dynamic": "5.2.10",
"#ionic-native/admob-free": "^4.7.0",
"#ionic-native/admob-pro": "^4.19.0",
"#ionic-native/app-version": "^4.8.0",
"#ionic-native/barcode-scanner": "^4.19.0",
"#ionic-native/browser-tab": "^4.19.0",
"#ionic-native/camera": "^4.7.0",
"#ionic-native/core": "4.7.0",
"#ionic-native/facebook": "^4.19.0",
"#ionic-native/file": "^4.8.0",
"#ionic-native/file-transfer": "^4.7.0",
"#ionic-native/firebase": "^4.13.0",
"#ionic-native/google-plus": "^5.0.0",
"#ionic-native/in-app-browser": "^4.7.0",
"#ionic-native/instagram": "^4.19.0",
"#ionic-native/local-notifications": "^4.13.0",
"#ionic-native/network": "^4.7.0",
"#ionic-native/open-native-settings": "^4.7.0",
"#ionic-native/social-sharing": "^4.7.0",
"#ionic-native/splash-screen": "4.7.0",
"#ionic-native/status-bar": "^4.7.0",
"#ionic-native/youtube-video-player": "^4.7.0",
"#ionic/storage": "2.1.3",
"angular-pipes": "^8.0.0",
"angularfire2": "^5.1.1",
"cordova-admob-sdk": "^0.17.0",
"cordova-android": "^7.1.4",
"cordova-instagram-plugin": "^0.5.7",
"cordova-ios": "^4.5.5",
"cordova-open-native-settings": "^1.5.2",
"cordova-plugin-add-swift-support": "^1.7.2",
"cordova-plugin-admob-free": "^0.17.4",
"cordova-plugin-admobpro": "^2.37.1",
"cordova-plugin-app-version": "^0.1.9",
"cordova-plugin-badge": "^0.8.7",
"cordova-plugin-camera": "^4.0.3",
"cordova-plugin-device": "^2.0.2",
"cordova-plugin-document-viewer": "^0.9.10",
"cordova-plugin-extension": "^1.5.4",
"cordova-plugin-facebook4": "^4.1.0",
"cordova-plugin-file": "^6.0.1",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-firebase": "^2.0.2",
"cordova-plugin-inappbrowser": "^3.0.0",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^3.1.0",
"cordova-plugin-local-notification": "^0.9.0-beta.2",
"cordova-plugin-network-information": "^2.0.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-statusbar": "^2.4.2",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-plugin-x-socialsharing": "^5.4.4",
"cordova-plugin-youtube-video-player": "^1.0.6",
"cordova-promise-polyfill": "0.0.2",
"cordova-universal-clipboard": "git+https://github.com/Visigo/CordovaClipboard.git",
"es6-promise-plugin": "^4.2.2",
"firebase": "^5.8.2",
"ionic-angular": "3.9.2",
"ionic-img-viewer": "^2.9.0",
"ionicons": "3.0.0",
"moment": "^2.22.2",
"ng2-pdf-viewer": "^5.1.0",
"ng2-simple-timer": "^1.3.3",
"ngx-moment": "^3.1.0",
"phonegap-plugin-barcodescanner": "^8.0.0",
"rxjs": "5.5.11",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.26"
},
"devDependencies": {
"#ionic/app-scripts": "^3.2.1",
"#ionic/lab": "1.0.18",
"typescript": "~2.6.2"
},
"description": "app description",
"cordova": {
"plugins": {
"cordova-plugin-admob-free": {},
"cordova-plugin-x-socialsharing": {
"ANDROID_SUPPORT_V4_VERSION": "24.1.1+"
},
"cordova-instagram-plugin": {},
"cordova-plugin-network-information": {},
"cordova-plugin-camera": {},
"cordova-plugin-file-transfer": {},
"cordova-open-native-settings": {},
"cordova-plugin-inappbrowser": {},
"cordova-plugin-youtube-video-player": {},
"cordova-plugin-app-version": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-ionic-keyboard": {},
"phonegap-plugin-barcodescanner": {
"ANDROID_SUPPORT_V4_VERSION": "27.+"
},
"cordova-plugin-file": {},
"cordova-plugin-document-viewer": {},
"cordova-plugin-statusbar": {},
"cordova-plugin-local-notification": {},
"cordova-plugin-firebase": {},
"cordova-universal-clipboard": {},
"cordova-plugin-admobpro": {
"PLAY_SERVICES_VERSION": "16.0.0"
},
"cordova-plugin-facebook4": {
"APP_ID": "appid",
"APP_NAME": "237actu",
"FACEBOOK_HYBRID_APP_EVENTS": "false",
"FACEBOOK_ANDROID_SDK_VERSION": "4.38.1"
},
"cordova-plugin-googleplus": {
"REVERSED_CLIENT_ID": "app reverse client id"
}
},
"platforms": [
"android",
"ios"
]
}
}
To resolve this problem I tried two things:
I added node --max-old-space-size=2048 in the scripts section of the package.json as follows:
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "node --max-old-space-size=2048 ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
It did not work.
I edited the ionic.cmd file of my computer as follows:
#IF EXIST "%~dp0\node.exe" (
"%~dp0\node.exe" "%~dp0\node_modules\ionic\bin\ionic" %*
)
ELSE (
#SETLOCAL
#SET PATHEXT=%PATHEXT:;.JS;=;% **node --max-old-space-size=2048** "%~dp0\node_modules\ionic\bin\ionic" %*)
As you can notice, I just added --max-old-space-size=2048, but it did not work. My computer RAM is 3 984 MB
I also tried to downgrade firebase to the 4 version before the build, but it did not work.
I updated all the dependencies of my project using this command : npm update -f
I deleted the folders from my project plugins, platforms, nodes_modules and i also removed package-lock.json from my project. And i ran the commands in the project before the build :
npm install,
ionic cordova platform add android.
None of theses solutions worked for me.
Any help ?
Finally here is the solution that have worked for me.
The Removal of android platform from the project with this command :
ionic cordova platform rm android
The Adding of the android platform to the project : ionic cordova platform add android#latest, in my case, i used the latest version of android platform.
The Adding of the #angular-devkit/build-optimizer#0.6.8 in the project :
npm install #angular-devkit/build-optimizer#0.6.8 --save
this angular plugin will optimize the build of the project.
The running of this command in the project : cordova clean
Now when i run ionic cordova build android --prod --release it succeed.
try this
* add this to the package.json scripts
`"ionic:build": "node --max-old-space-size=8192 ./node_modules/#ionic/app-scripts/bin/ionic-app-scripts.js build",`
* run the command:
`npm run ionic:build --prod`
* run the commands:
`cordova build android --release`
`cordova build ios --release`
I have a ionic project (created by Ionic CLI). I am trying to integrate firebase's phone authentication mechanism to login user. As per different tutorials and guidelines, I knew I had to rely upon some forks as the official firebase plugin doesn't have phone authentication support yet.
I came across -
1. https://github.com/jestcastro/cordova-plugin-firebase
&
2. https://github.com/arnesson/cordova-plugin-firebase
and installed them separately.
Both of them have similar structure :
window.FirebasePlugin.verifyPhoneNumber(number, timeOutDuration, function(credential) {
console.log(credential);
// ask user to input verificationCode:
var code = inputField.value.toString();
var verificationId = credential.verificationId;
var signInCredential = firebase.auth.PhoneAuthProvider.credential(verificationId, code);
firebase.auth().signInWithCredential(signInCredential);
}, function(error) {
console.error(error);
});
But, whenever I try to run the code (on physical device, or in browser), it gives me this error -
ERROR TypeError: window.FirebasePlugin.verifyPhoneNumber is not a function
I have tried -
(<any>window).FirebasePlugin.verifyPhoneNumber(..)
but found similar result.
Ionic Info gives this :
#ionic/cli-plugin-proxy : 1.4.11
#ionic/cli-utils : 1.12.0
ionic (Ionic CLI) : 3.12.0
global packages:
cordova (Cordova CLI) : 7.1.0
local packages:
#ionic/app-scripts : 3.1.0
Cordova Platforms : none
Ionic Framework : ionic-angular 3.9.2
System:
Android SDK Tools : 26.0.2
Node : v6.11.3
npm : 3.10.10
OS : Windows 7
Misc:
backend : pro
package.json
{
"name": "playground",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"#angular/common": "5.0.0",
"#angular/compiler": "5.0.0",
"#angular/compiler-cli": "5.0.0",
"#angular/core": "5.0.0",
"#angular/forms": "5.0.0",
"#angular/http": "5.0.0",
"#angular/platform-browser": "5.0.0",
"#angular/platform-browser-dynamic": "5.0.0",
"#ionic-native/camera": "^4.4.0",
"#ionic-native/core": "4.3.2",
"#ionic-native/file": "^4.4.0",
"#ionic-native/file-transfer": "^4.4.0",
"#ionic-native/splash-screen": "4.3.2",
"#ionic-native/status-bar": "4.3.2",
"#ionic/storage": "2.1.3",
"angularfire2": "^5.0.0-rc.4",
"cordova-android": "~6.3.0",
"cordova-plugin-camera": "^3.0.0",
"cordova-plugin-device": "^1.1.4",
"cordova-plugin-file": "^5.0.0",
"cordova-plugin-file-transfer": "^1.7.0",
"cordova-plugin-firebase": "^0.1.24",
"cordova-plugin-ionic-webview": "^1.1.16",
"cordova-plugin-splashscreen": "^4.0.3",
"cordova-plugin-whitelist": "^1.3.1",
"firebase": "^4.6.2",
"ionic-angular": "3.9.2",
"ionic-plugin-keyboard": "^2.2.1",
"ionicons": "3.0.0",
"rxjs": "5.5.2",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.18"
},
"devDependencies": {
"#ionic/app-scripts": "3.1.0",
"typescript": "2.4.2"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"ionic-plugin-keyboard": {},
"cordova-plugin-whitelist": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-file-transfer": {},
"cordova-plugin-file": {},
"cordova-plugin-camera": {},
"cordova-plugin-firebase": {}
},
"platforms": [
"android"
]
}
}
Has anyone else faced this issue? How have you managed to solve it? Seeking help.
You need to install cordova-plugin-firebase using ionic cordova plugin add https://github.com/jestcastro/cordova-plugin-firebase.git --save.when we install using ionic cordova plugin add cordova-plugin-firebase this error occures.
This worked for me
cordova plugin remove cordova-plugin-firebase
cordova plugin add https://github.com/jestcastro/cordova-plugin-firebase.git
This code has been working in ionic 2, however after upgrading to ionic 3 my login & signup screen have began to act weird.The entire screen goes white on input focus and also when i click any button.
The code works well in a browser however after in build production app and test on android device it acts as below.
I have tried changing the html and sass with no success and i've run out of ideas on how to fix it. Here is my login screen code if it helps.
ionic info
cli packages:
#ionic/cli-utils : 1.6.0 (/root/Templates/Akorion Projects/EzyExtensionV2/node_modules/ionic/node_modules/#ionic/cli-utils)
ionic (Ionic CLI) : 3.6.0 (/root/Templates/Akorion Projects/EzyExtensionV2/node_modules/ionic)
global packages:
Cordova CLI : 7.0.1
local packages:
#ionic/app-scripts : 2.0.2
#ionic/cli-plugin-cordova : 1.4.1
#ionic/cli-plugin-ionic-angular : 1.3.2
Cordova Platforms : android 6.2.3
Ionic Framework : ionic-angular 3.5.3
System:
Android SDK Tools : 26.0.2
Node : v7.4.0
OS : Linux 4.9
npm : 5.0.0
package.json
{
"name": "EzyExtensionV2",
"version": "0.0.1",
"author": "Ionic Framework",
"homepage": "http://ionicframework.com/",
"private": true,
"scripts": {
"clean": "ionic-app-scripts clean",
"build": "ionic-app-scripts build",
"lint": "ionic-app-scripts lint",
"ionic:build": "ionic-app-scripts build",
"ionic:serve": "ionic-app-scripts serve"
},
"dependencies": {
"#angular/animations": "^4.1.3",
"#angular/common": "4.1.3",
"#angular/compiler": "4.1.3",
"#angular/compiler-cli": "4.1.3",
"#angular/core": "4.1.3",
"#angular/forms": "4.1.3",
"#angular/http": "4.1.3",
"#angular/platform-browser": "4.1.3",
"#angular/platform-browser-dynamic": "4.1.3",
"#ionic-native/app-version": "^4.0.1",
"#ionic-native/call-number": "^4.0.1",
"#ionic-native/camera": "^4.0.1",
"#ionic-native/core": "3.12.1",
"#ionic-native/file": "^4.0.1",
"#ionic-native/file-path": "^4.0.1",
"#ionic-native/file-transfer": "^4.0.1",
"#ionic-native/google-analytics": "^4.0.1",
"#ionic-native/keyboard": "^4.0.1",
"#ionic-native/local-notifications": "^4.0.1",
"#ionic-native/printer": "^4.0.1",
"#ionic-native/screenshot": "^4.0.1",
"#ionic-native/social-sharing": "^4.0.1",
"#ionic-native/splash-screen": "^4.0.1",
"#ionic-native/status-bar": "^4.0.1",
"#ionic-native/transfer": "^3.14.0",
"#ionic/storage": "2.0.1",
"#types/node": "^8.0.14",
"#types/pouchdb": "6.1.0",
"ionic-angular": "3.5.3",
"ionic-image-loader": "^4.1.1",
"ionicons": "3.0.0",
"pouchdb": "^6.3.4",
"rxjs": "5.4.0",
"sw-toolbox": "3.6.0",
"zone.js": "0.8.12"
},
"devDependencies": {
"#ionic/app-scripts": "2.0.2",
"#ionic/cli-plugin-cordova": "1.4.1",
"#ionic/cli-plugin-ionic-angular": "1.3.2",
"ionic": "3.6.0",
"typescript": "2.3.4"
},
"description": "An Ionic project"
}
After further trials i also uncovered that it only happens when i build using the --prod flag and on android phones with resolution 480x800 and below.
I have opened up an issue on the ionic github page.
Hi I have this error when try to run a command:
sudo ionic cordova run android --prod --release
Error:
ionic-app-script task: "build"
[16:58:40] Error: Metadata version mismatch for module
/Applications/MAMP/htdocs/collaborazon/WORKSPACE/mobile/node_modules/#ionic-native/core/decorators.d.ts,
found version 4, expected 3
Error: Metadata version mismatch for module /Applications/MAMP/htdocs/collaborazon/WORKSPACE/mobile/node_modules/#ionic-native/core/decorators.d.ts, found version 4, expected 3
at StaticSymbolResolver.getModuleMetadata (/Applications/MAMP/htdocs/collaborazon/WORKSPACE/mobile/node_modules/#angular/compiler/bundles/compiler.umd.js:25616:34)
at StaticSymbolResolver._createSymbolsOf (/Applications/MAMP/htdocs/collaborazon/WORKSPACE/mobile/node_modules/#angular/compiler/bundles/compiler.umd.js:25404:46)
at StaticSymbolResolver.getSymbolsOf (/Applications/MAMP/htdocs/collaborazon/WORKSPACE/mobile/node_modules/#angular/compiler/bundles/compiler.umd.js:25385:14)
at /Applications/MAMP/htdocs/collaborazon/WORKSPACE/mobile/node_modules/#angular/compiler/bundles/compiler.umd.js:24241:30
at Array.forEach (<anonymous>)
at extractProgramSymbols (/Applications/MAMP/htdocs/collaborazon/WORKSPACE/mobile/node_modules/#angular/compiler/bundles/compiler.umd.js:24240:79)
at AotCompiler.analyzeModulesAsync (/Applications/MAMP/htdocs/collaborazon/WORKSPACE/mobile/node_modules/#angular/compiler/bundles/compiler.umd.js:23796:47)
at CodeGenerator.codegen (/Applications/MAMP/htdocs/collaborazon/WORKSPACE/mobile/node_modules/#angular/compiler-cli/src/codegen.js:32:14)
at Function.NgTools_InternalApi_NG_2.codeGen (/Applications/MAMP/htdocs/collaborazon/WORKSPACE/mobile/node_modules/#angular/compiler-cli/src/ngtools_api.js:73:30)
at /Applications/MAMP/htdocs/collaborazon/WORKSPACE/mobile/node_modules/#ionic/app-scripts/dist/aot/aot-compiler.js:182:73
Here are my dependecies:
"dependencies": {
"#angular/cli": "^6.0.8",
"#angular/common": "^4.4.7",
"#angular/compiler": "^4.4.7",
"#angular/compiler-cli": "^4.4.7",
"#angular/core": "^4.4.7",
"#angular/forms": "^4.4.7",
"#angular/http": "^4.4.7",
"#angular/platform-browser": "^4.4.7",
"#angular/platform-browser-dynamic": "^4.4.7",
"#ionic-native/background-mode": "^4.4.2",
"#ionic-native/badge": "^4.4.2",
"#ionic-native/camera": "^4.4.2",
"#ionic-native/core": "^4.4.2",
"#ionic-native/file": "^4.4.2",
"#ionic-native/file-path": "^4.4.2",
"#ionic-native/file-transfer": "^4.16.0",
"#ionic-native/image-picker": "^4.4.2",
"#ionic-native/local-notifications": "^4.4.2",
"#ionic-native/push": "^4.4.2",
"#ionic-native/splash-screen": "^4.4.2",
"#ionic-native/status-bar": "^4.4.2",
"#ionic/cloud-angular": "^0.12.0",
"#ionic/storage": "^2.1.3",
"ajv": "^5.5.2",
"clean-css": "^4.1.11",
"cli-update": "^3.2.5",
"cordova": "^8.0.0",
"cordova-android": "^6.4.0",
"cordova-browser": "^5.0.3",
"cordova-ios": "^4.5.5",
"cordova-plugin-add-swift-support": "^1.7.2",
"cordova-plugin-background-mode": "^0.7.2",
"cordova-plugin-badge": "^0.8.7",
"cordova-plugin-camera": "^4.0.3",
"cordova-plugin-console": "1.0.5",
"cordova-plugin-device": "1.1.4",
"cordova-plugin-file": "^6.0.1",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-filepath": "^1.3.0",
"cordova-plugin-ionic": "^2.0.4",
"cordova-plugin-ionic-keyboard": "~2.0.5",
"cordova-plugin-local-notification": "^0.9.0-beta.2",
"cordova-plugin-splashscreen": "~4.0.1",
"cordova-plugin-statusbar": "2.2.1",
"cordova-plugin-telerik-imagepicker": "^2.2.2",
"cordova-plugin-whitelist": "1.3.1",
"hoek": "^5.0.3",
"https-proxy-agent": "^2.2.1",
"intl": "^1.2.5",
"ionic-angular": "^3.9.2",
"ionic-native": "^2.9.0",
"ionic-plugin-deploy": "^0.6.7",
"ionic-plugin-keyboard": "~2.2.1",
"ionicons": "3.0.0",
"jquery": "^3.3.1",
"jquery-touchswipe": "^1.6.15",
"lodash": "^4.17.10",
"moment": "^2.22.2",
"npm": "^6.2.0",
"phonegap-plugin-push": "^1.11.1",
"rxjs": "^5.5.11",
"sw-toolbox": "^3.6.0",
"swift": "^0.1.8",
"zone.js": "^0.8.26"
},
"devDependencies": {
"#ionic/app-scripts": "^3.2.0",
"#types/node": "^10.5.2",
"node-sass": "^4.9.2",
"rebuild-node-sass": "^1.1.0",
"tunnel-agent": "^0.6.0",
"typescript": "2.4.0"
},
When I run npm outdate command I get:
#angular/cli 6.2.5 6.2.5 7.0.1
#angular/common 4.4.7 4.4.7 7.0.0
#angular/compiler 4.4.7 4.4.7 7.0.0
#angular/compiler-cli 4.4.7 4.4.7 7.0.0
#angular/core 4.4.7 4.4.7 7.0.0
#angular/forms 4.4.7 4.4.7 7.0.0
#angular/http 4.4.7 4.4.7 7.0.0
#angular/platform-browser 4.4.7 4.4.7 7.0.0
#angular/platform-browser-dynamic 4.4.7 4.4.7 7.0.0
ajv 5.5.2 5.5.2 6.5.4
cordova-android 6.4.0 6.4.0 7.1.1
cordova-plugin-console 1.0.5 1.0.5 1.1.0
cordova-plugin-device 1.1.4 1.1.4 2.0.2
cordova-plugin-ionic 2.0.4 2.0.4 5.2.5
cordova-plugin-ionic-keyboard 2.0.5 2.0.5 2.1.3
cordova-plugin-splashscreen 4.0.3 4.0.3 5.0.2
cordova-plugin-statusbar 2.2.1 2.2.1 2.4.2
cordova-plugin-whitelist 1.3.1 1.3.1 1.3.3
ionicons 3.0.0 3.0.0 4.4.6
phonegap-plugin-push 1.11.1 1.11.1 2.2.3
rxjs 5.5.12 5.5.12 6.3.3
swift 0.1.8 0.1.8 2.0.1
typescript 2.4.0 2.4.0 3.1.3
When I run ionic info command I get:
Ionic:
ionic (Ionic CLI) : 4.2.1 (/usr/local/lib/node_modules/ionic)
Ionic Framework : ionic-angular 3.9.2
#ionic/app-scripts : 3.2.0
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib#8.1.1)
Cordova Platforms : android 6.4.0, browser 5.0.1, ios 4.5.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.0.5, (and 15 other plugins)
I try to solve it few days, read related topics but I can not move forward much. Guess 1 or 2 plugins are not synchronized. Please can someone take a look?
Thanks in advance