aidanas opened a new issue #508:
URL: https://github.com/apache/cordova-cli/issues/508


   # Bug Report
   
   ## Problem
   
   Plugins are not restored from `package.json`. They are only restored if 
listed in `config.xml` but since Cordova 9 plugins are to be managed with 
`package.json`.
   Steps to recreate:
   
   1.  Create new app:
   `cordova create testPluginRestore com.example.testpluginrestore 
TestPluginRestore`
   2. Add platform:
   `cordova platform add android` 
   3. Add plugin:
   `cordova plugin add cordova-plugin-geolocation`
   4. Check plugin added ok?
   `cordova plugin ls`
   5. Clean plugins and pltfroms
   `rm -rf platforms/ plugins/ node_modules/`
   6. Prepare android 
   `cordova prepare android`
   7. Check plugins restored
   `cordova plugin ls`
   
   ### What is expected to happen?
   - cordova-plugin-geolocation plugin to be restored and listed in the list
   
   ### What does actually happen?
   -  cordova-plugin-geolocation is not redtored.
   
   
   ## Information
   <!-- Include all relevant information that might help understand and 
reproduce the problem -->
   
   
   
   ### Command or Code
   <!-- What command or code is needed to reproduce the problem? -->
   
   
   
   ### Environment, Platform, Device
   <!-- In what environment, on what platform or on which device are you 
experiencing the issue? -->
   - Mac OS
   
   
   ### Version information
   <!-- 
   What are relevant versions you are using?
   For example:
   Cordova: Cordova CLI, Cordova Platforms, Cordova Plugins 
   Other Frameworks: Ionic Framework and CLI version
   Operating System, Android Studio, Xcode etc.
   -->
   
   - Cordova CLI 9.0.0
   
   
   
   ## Checklist
   <!-- Please check the boxes by putting an x in the [ ] like so: [x] -->
   
   - [x] I searched for existing GitHub issues
   - [x] I updated all Cordova tooling to most recent version
   - [x] I included all the necessary information above
   


----------------------------------------------------------------
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:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to