Hi,
I want to run my old ionic project but I have Cannot read property 'reject' of undefined
error and I don’t know what to do ! I think to downgrade plugin version but wich plugin ?
there is my package.json =
{
"name": "appName",
"version": "1.2.6",
"author": "Me",
"homepage": "http://me.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.3",
"@angular/compiler": "5.0.3",
"@angular/compiler-cli": "5.0.3",
"@angular/core": "5.0.3",
"@angular/forms": "5.0.3",
"@angular/http": "5.0.3",
"@angular/platform-browser": "5.0.3",
"@angular/platform-browser-dynamic": "5.0.3",
"@ionic-native/android-permissions": "^4.16.0",
"@ionic-native/app-version": "^4.16.0",
"@ionic-native/background-mode": "^4.20.0",
"@ionic-native/camera": "^4.16.0",
"@ionic-native/contacts": "^4.16.0",
"@ionic-native/core": "4.4.0",
"@ionic-native/file": "^4.16.0",
"@ionic-native/file-chooser": "^4.16.0",
"@ionic-native/file-path": "^4.16.0",
"@ionic-native/file-picker": "^4.16.0",
"@ionic-native/file-transfer": "^4.16.0",
"@ionic-native/http": "^4.16.0",
"@ionic-native/image-picker": "^4.16.0",
"@ionic-native/in-app-browser": "^4.16.0",
"@ionic-native/market": "^4.16.0",
"@ionic-native/native-storage": "^4.16.0",
"@ionic-native/network": "^4.16.0",
"@ionic-native/photo-library": "^4.16.0",
"@ionic-native/sms": "^4.16.0",
"@ionic-native/splash-screen": "4.4.0",
"@ionic-native/status-bar": "4.4.0",
"@ionic/storage": "2.1.3",
"com.synconset.imagepicker": "^2.1.10",
"cordova-android": "6.3.0",
"cordova-custom-config": "^5.0.2",
"cordova-ios": "^5.0.1",
"cordova-plugin-add-swift-support": "^1.7.2",
"cordova-plugin-advanced-http": "~1.11.1",
"cordova-plugin-android-permissions": "^1.0.0",
"cordova-plugin-app-version": "^0.1.9",
"cordova-plugin-background-mode": "0.7.2",
"cordova-plugin-contacts": "^3.0.1",
"cordova-plugin-device": "^2.0.1",
"cordova-plugin-file": "^6.0.1",
"cordova-plugin-file-transfer": "^1.7.1",
"cordova-plugin-filechooser": "^1.0.1",
"cordova-plugin-filepath": "^1.4.2",
"cordova-plugin-filepicker": "^1.1.4",
"cordova-plugin-inappbrowser": "^3.0.0",
"cordova-plugin-ionic-keyboard": "^2.1.3",
"cordova-plugin-ionic-webview": "^1.1.19",
"cordova-plugin-market": "^1.2.0",
"cordova-plugin-nativestorage": "^2.3.2",
"cordova-plugin-network-information": "^2.0.1",
"cordova-plugin-splashscreen": "^5.0.2",
"cordova-plugin-telerik-imagepicker": "^2.2.2",
"cordova-plugin-whitelist": "^1.3.3",
"cordova-sms-plugin": "^0.1.13",
"ionic-angular": "3.9.2",
"ionicons": "3.0.0",
"jquery": "^3.3.1",
"market": "1.0.0",
"rxjs": "5.5.2",
"sw-toolbox": "3.6.0",
"wifiwizard": "^0.2.11",
"zone.js": "0.8.18"
},
"devDependencies": {
"@ionic/app-scripts": "3.1.8",
"@types/node": "^10.12.1",
"typescript": "2.4.2"
},
"description": "An Ionic project",
"cordova": {
"plugins": {
"cordova-plugin-whitelist": {},
"cordova-plugin-device": {},
"cordova-plugin-splashscreen": {},
"cordova-plugin-ionic-webview": {},
"cordova-plugin-ionic-keyboard": {},
"cordova-plugin-network-information": {},
"cordova-plugin-file": {},
"cordova-plugin-filepath": {},
"cordova-plugin-file-transfer": {},
"cordova-plugin-nativestorage": {},
"cordova-custom-config": {},
"cordova-plugin-android-permissions": {},
"cordova-plugin-market": {},
"cordova-plugin-app-version": {},
"com.synconset.imagepicker": {
"PHOTO_LIBRARY_USAGE_DESCRIPTION": " "
},
"cordova-plugin-contacts": {},
"cordova-plugin-filechooser": {},
"cordova-plugin-filepicker": {},
"cordova-plugin-advanced-http": {},
"cordova-sms-plugin": {},
"cordova-plugin-inappbrowser": {},
"com.pylonproducts.wifiwizard": {}
},
"platforms": [
"android"
]
}
}
and there is the result of the command =
ionic cordova run ios
> ionic-app-scripts build --target cordova --platform ios
[10:28:47] ionic-app-scripts 3.1.8
[10:28:47] build dev started ...
[10:28:47] clean started ...
[10:28:47] clean finished in 2 ms
[10:28:47] copy started ...
[10:28:47] deeplinks started ...
[10:28:48] deeplinks finished in 130 ms
[10:28:48] transpile started ...
[10:28:51] transpile finished in 3.03 s
[10:28:51] preprocess started ...
[10:28:51] preprocess finished in less than 1 ms
[10:28:51] webpack started ...
[10:28:51] copy finished in 3.28 s
[10:28:55] webpack finished in 4.09 s
[10:28:55] sass started ...
Without `from` option PostCSS could generate wrong source map and will not find Browserslist config. Set it to CSS file path or to `undefined` to prevent this warning.
[10:28:56] sass finished in 841 ms
[10:28:56] postprocess started ...
[10:28:56] postprocess finished in 7 ms
[10:28:56] lint started ...
[10:28:56] build dev finished in 8.18 s
[10:28:58] lint finished in 2.58 s
> cordova run ios
Cannot read property 'reject' of undefined
[ERROR] An error occurred while running subprocess cordova.
cordova run ios exited with exit code 1.
Re-running this command with the --verbose flag may provide more information.
Please help me the reject
var is in my rest provider to make requests
Thanks