You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cordova.apache.org by GitBox <gi...@apache.org> on 2020/06/24 05:13:42 UTC
[GitHub] [cordova-cli] erisu commented on issue #508: Plugins are not restored from package.json but only from config.xml
erisu commented on issue #508:
URL: https://github.com/apache/cordova-cli/issues/508#issuecomment-648590059
@aidanas Can you please test with `cordova@nightly` and confirm if this is still an issue?
When I tested with nightly and it appears that plugins are being restored correctly.
```bash
rm -rf package-lock.json node_modules platforms plugins
$ cordova prepare
Warning: using prerelease version 10.0.0-nightly.2020.6.24.7b8e8678 (cordova-lib@10.0.0-nightly.2020.6.24.909e7c72)
Discovered platform "android". Adding it to the project
Using cordova-fetch for cordova-android@8.0.0
Adding android project...
Creating Cordova project for the Android platform:
Path: platforms/android
Package: com.test.foobar
Name: foobar
Activity: MainActivity
Android target: android-28
Subproject Path: CordovaLib
Subproject Path: app
Android project created with cordova-android@8.0.0
Discovered plugin "cordova-plugin-whitelist". Adding it to the project
Installing "cordova-plugin-whitelist" for android
Discovered plugin "cordova-plugin-geolocation". Adding it to the project
Installing "cordova-plugin-geolocation" for android
Installing "cordova-plugin-compat" for android
Plugin doesn't support this project's cordova-android version. cordova-android: 8.0.0, failed version requirement:
<6.3.0
Skipping 'cordova-plugin-compat' for android
$ cordova plugin ls
Warning: using prerelease version 10.0.0-nightly.2020.6.24.7b8e8678 (cordova-lib@10.0.0-nightly.2020.6.24.909e7c72)
cordova-plugin-compat 1.2.0 "Compat"
cordova-plugin-geolocation 2.4.3 "Geolocation"
cordova-plugin-whitelist 1.3.4 "Whitelist"
```
The issue you are reporting might exist in 9.x but not in the upcoming 10.x release which is being prepared.
You can test with nightly by updating your global install:
```bash
npm uninstall -g cordova
npm install -g cordova@nightly
```
You might also be able to use `npx` command in the cordova project directory and not update your global install.
```
npx cordova@nightly prepare
```
Please remember that nightly is not production ready as it has not been voted on for release.
----------------------------------------------------------------
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: issues-unsubscribe@cordova.apache.org
For additional commands, e-mail: issues-help@cordova.apache.org