Hi - I’ve just upgraded various ionic related packages around an existing app and now cannot build it (ionic cordova build android). I get the TypeError: env.runcmd is not a function message, then lots of minor typescript errors, then node 20171 UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): Error: channel closed. Anyone know how to fix this? I’ve tried most things I’ve searched for on the web (including going back in versions) and nothing seems to work.
I’m trying to compile with ‘ionic cordova build android’ on linux (mint).
My package.json is:
{
“name”: “schej”,
“author”: “Novel Design Ltd”,
“homepage”: “http://www.schej.co.uk/”,
“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”,
"@angular/platform-server": “4.1.3”,
"@ionic-native/core": “3.12.1”,
"@ionic-native/facebook": “3.12.1”,
"@ionic-native/native-storage": “3.12.1”,
"@ionic-native/push": “3.12.1”,
"@ionic-native/splash-screen": “3.12.1”,
"@ionic-native/status-bar": “3.12.1”,
"@ionic/cloud-angular": “^0.12.0”,
"@ionic/storage": “2.0.1”,
“cordova-plugin-actionsheet”: “^2.3.3”,
“cordova-plugin-camera”: “^2.4.1”,
“cordova-plugin-compat”: “^1.1.0”,
“cordova-plugin-console”: “^1.0.7”,
“cordova-plugin-contacts”: “^2.3.1”,
“cordova-plugin-device”: “^1.1.6”,
“cordova-plugin-extension”: “^1.5.1”,
“cordova-plugin-facebook4”: “^1.9.1”,
“cordova-plugin-nativestorage”: “^2.2.2”,
“cordova-plugin-network-information”: “^1.3.3”,
“cordova-plugin-screen-orientation”: “^2.0.1”,
“cordova-plugin-splashscreen”: “^4.0.3”,
“cordova-plugin-statusbar”: “^2.2.3”,
“cordova-plugin-whitelist”: “^1.3.2”,
“ionic-angular”: “3.5.2”,
“ionic-plugin-keyboard”: “^2.2.1”,
“ionicons”: “3.0.0”,
“phonegap-plugin-push”: “^1.10.4”,
“rxjs”: “5.4.0”,
“sw-toolbox”: “3.6.0”,
“uk.co.workingedge.phonegap.plugin.launchnavigator”: “^3.2.2”,
“zone.js”: “0.8.12”
},
“devDependencies”: {
"@ionic/app-scripts": “^2.1.3”,
“ionic”: “3.6.0”,
“typescript”: “^2.3.4”
},
“cordovaPlugins”: [
“cordova-plugin-whitelist”,
“cordova-plugin-statusbar”,
“cordova-plugin-console”,
“cordova-plugin-device”,
“cordova-plugin-splashscreen”,
“cordova-plugin-actionsheet”,
“cordova-plugin-nativestorage”,
“ionic-plugin-keyboard”,
“cordova-plugin-contacts”,
“cordova-plugin-screen-orientation”,
“cordova-plugin-network-information”,
“cordova-plugin-camera”,
“uk.co.workingedge.phonegap.plugin.launchnavigator”
],
“cordovaPlatforms”: [],
“description”: “Schej: Integrated scheduling for families, groups, clubs and organisations”,
“cordova”: {
“plugins”: {
“phonegap-plugin-push”: {
“SENDER_ID”: “85075801930”
},
“cordova-plugin-whitelist”: {},
“uk.co.workingedge.phonegap.plugin.launchnavigator”: {},
“cordova-plugin-nativestorage”: {},
“cordova-plugin-splashscreen”: {},
“cordova-plugin-statusbar”: {},
“cordova-plugin-network-information”: {},
“cordova-plugin-facebook4”: {
“APP_ID”: “306250223155899”,
“APP_NAME”: “Schej”
},
“cordova-plugin-actionsheet”: {},
“cordova-plugin-compat”: {},
“cordova-plugin-console”: {},
“cordova-plugin-contacts”: {},
“cordova-plugin-extension”: {},
“cordova-plugin-device”: {},
“ionic-plugin-keyboard”: {}
}
},
“config”: {
“ionic_generate_source_map”: “false”
}
}
Any ideas? I’ve been at this one for hours…
Thanks
Chris