Closed Muzietto closed 5 years ago
Same error on MacOS 10.14. Please comment!
This is not happening for me in a test case - see console output below.
If possible, please provide a similar set of reproducible steps which recreates the issue.
All wrongs happen during a cordova platform add ios --fetch
operation, starting from a pretty large config.xml file.
Done some more experimentation. I am actually able to run the computation further by installing manually npm packages each time the installation of cordova-custom-config throws (same message as in my first note, with only the package name changed).
So far I've installed:
I see some of them are explicitly mentioned inside applyCustomConfig.js; others could be dependencies of the earlier ones. Any idea?
Some of these are direct dependencies of this plugin and others I would assume are sub-dependencies or dependencies of other plugins.
Using cordova@7
or above, the dependencies of this plugin should be satisfied by Cordova via npm.
Seems like something is going wrong with that dependency resolution or with your local node_modules
.
You could try to reproduce it in an isolated test project to rule out conflicts with other plugins.
Closed due to no response from OP
@dpa99c I got same error now.
Same error!
check if cordova-custom-config is added in package.json in dependencies node
I'm submitting a ... (check one with "x"):
Bug report
Current behavior:
I am upgrading my environment to move beyond cordova 6.x.x.
During an "cordova platform add android --fetch" the execution stops with:
The error message clearly states that the issue happens during the run of cordova-custom-config. However I am already running everything with
--fetch
I have modified the config.xml file according to https://www.npmjs.com/package/cordova-custom-config#changes-in-cordova-custom-config5
Expected behavior:
The
cordova platform add android
command runs without interruption.Environment information
Cordova CLI version
cordova -v
--> 8.1.0Cordova platform version
cordova platform ls
--> android 7.1.1Plugins & versions installed in project (including this plugin)
cordova plugin ls
cordova-clipboard 1.2.1 "Clipboard" cordova-custom-config 5.0.2 "cordova-custom-config" cordova-plugin-android-fingerprint-auth 1.4.4 "FingerprintAuth" cordova-plugin-appavailability 0.4.2 "AppAvailability" cordova-plugin-camera 4.0.3 "Camera" cordova-plugin-device 1.1.4 "Device" cordova-plugin-globalization 1.11.0 "Globalization" cordova-plugin-inappbrowser 3.0.0 "InAppBrowser" cordova-plugin-ionic-keyboard 2.1.3 "cordova-plugin-ionic-keyboard" cordova-plugin-prevent-screenshot 1.0.0 "BlockScreenShot" cordova-plugin-root-detection 0.1.1 "Root Detection" cordova-plugin-splashscreen 5.0.2 "Splashscreen" cordova-plugin-statusbar 2.4.2 "StatusBar" cordova-plugin-wkwebview-engine 1.1.4-dev "Cordova WKWebView Engine" cordova-plugin-wkwebview-inputfocusfix 1.0.1 "WKWebView Input Focus Fix" cordova-plugin-x-socialsharing 5.4.1 "SocialSharing" es6-promise-plugin 4.1.0 "Promise" onesignal-cordova-plugin 2.4.3 "OneSignal Push Notifications" phonegap-plugin-barcodescanner 8.0.0 "BarcodeScanner"
Dev machine OS and version, e.g.