cordova-browser icon indicating copy to clipboard operation
cordova-browser copied to clipboard

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

Open goffioul opened this issue 4 years ago • 2 comments

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

goffioul avatar Feb 03 '22 09:02 goffioul

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.

erisu avatar Apr 01 '22 03:04 erisu

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.

goffioul avatar Apr 11 '22 16:04 goffioul