You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cordova.apache.org by GitBox <gi...@apache.org> on 2020/08/31 06:53:26 UTC
[GitHub] [cordova] BonBonSlick edited a comment on issue #239: Android / Web / iOSThe "path" argument must be of type string. Received type undefined
BonBonSlick edited a comment on issue #239:
URL: https://github.com/apache/cordova/issues/239#issuecomment-683588443
added --verbose
```
bonbon@debian:/var/www/test/cordova$ cordova platform add android --verbose
No scripts found for hook "before_platform_add".
No version supplied. Retrieving version from config.xml...
Grabbing pinned version.
Using cordova-fetch for cordova-android@^8.0.0
fetch: Installing cordova-android@^8.0.0 to /var/www/test/cordova
Running command: npm install cordova-android@^8.0.0 --production --save
Command finished with error code 0: npm install,cordova-android@^8.0.0,--production,--save
Removing "cordova-" prefix from cordova-android
Adding android project...
PlatformApi successfully found for platform android
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.sgx.sample
Name: test
Activity: MainActivity
Android target: android-28
Copying android template project to platforms/android
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@8.1.0
.. many grey stuff ...
config file undefined requested for changes not found at /var/www/test/cordova/platforms/android/undefined, ignoring
config file undefined requested for changes not found at /var/www/test/cordova/platforms/android/undefined, ignoring
Installing plugin "cordova-plugin-background-mode" following successful platform add of android
Found variables for "cordova-plugin-background-mode". Processing as cli_variables.
Installing "cordova-plugin-background-mode" for android
Running command: /var/www/test/cordova/platforms/android/cordova/version
Command finished with error code 0: /var/www/test/cordova/platforms/android/cordova/version
Running command: /var/www/test/cordova/platforms/android/cordova/android_sdk_version
Command finished with error code 2: /var/www/test/cordova/platforms/android/cordova/android_sdk_version
android-sdk version check failed (/var/www/test/cordova/platforms/android/cordova/android_sdk_version), continuing anyways.
Dependencies detected, iterating through them...
Requesting plugin "cordova-plugin-device".
Plugin dependency "cordova-plugin-device@2.0.3" already fetched, using that version.
Installing "cordova-plugin-device" for android
....
No differences found between plugins added to project and installed in android platform. Continuing...
Generating platform-specific config.xml from defaults for android at /var/www/test/cordova/platforms/android/app/src/main/res/xml/config.xml
config file undefined requested for changes not found at /var/www/test/cordova/platforms/android/undefined, ignoring
config file undefined requested for changes not found at /var/www/test/cordova/platforms/android/undefined, ignoring
Merging project's config.xml into platform-specific android config.xml
[Gradle Properties] Preparing Configuration
...
Prepared android project successfully
The "path" argument must be of type string. Received type undefined
TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string. Received type undefined
at validateString (internal/validators.js:125:11)
at Object.join (path.js:1147:7)
at ConfigKeeper_get [as get] (/usr/lib/node_modules/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigKeeper.js:45:26)
at /usr/lib/node_modules/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:346:51
at Array.forEach (<anonymous>)
at is_conflicting (/usr/lib/node_modules/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:339:17)
at PlatformMunger.add_config_changes (/usr/lib/node_modules/cordova/node_modules/cordova-common/src/ConfigChanges/ConfigChanges.js:190:33)
at /usr/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/prepare.js:112:32
at _fulfilled (/var/www/test/cordova/node_modules/q/q.js:854:54)
at /var/www/test/cordova/node_modules/q/q.js:883:30
```
[Might be related issue SO](https://stackoverflow.com/questions/55570278/cordova-error-due-to-8-0-the-path-argument-must-be-of-type-string-received-ty)
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cordova.apache.org
For additional commands, e-mail: commits-help@cordova.apache.org