Warning about non-existing config.xml emitted during browser platform restore
Bug Report
Problem
When restoring browser platform with cordova-plugin-device active, the following warning is emitted:
config file config.xml requested for changes not found at /path/to/project/platforms/browser/config.xml, ignoring
To reproduce, on a freshly created new cordova project:
cordova platform add browser
cordova plugin add cordova-plugin-device <-- no warning emitted here
rm -rf platforms plugins
cordova prepare browser <-- warning emitted
Information
Version information
[email protected] [email protected] [email protected]
Checklist
- [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 issue was transferred to the cordova-browser repo as it is not related to the individual plugin itself. It was reproducible with other plugins as well. The warning comes from cordova-common, but it might be related to its usage within this repo. Further investigation will be required.
Note: When doing the same on electron platform, then plugin restoration fails (instead of a simple warning for browser platform). I found out that I can avoid the issue by not having cordova-plugin-device the first entry in package.json => cordova => plugins.