apache / cordova-browser

Apache Cordova
Apache License 2.0
168 stars 85 forks source link

Warning about non-existing config.xml emitted during browser platform restore #104

Open goffioul opened 2 years ago

goffioul commented 2 years ago

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

cordova@11.0.0 cordova-browser@6.0.0 cordova-plugin-device@2.0.3

Checklist

erisu commented 2 years ago

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.

goffioul commented 2 years ago

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.