hexagon-ecosys opened a new issue, #169: URL: https://github.com/apache/cordova-plugin-device/issues/169
# Bug Report ## Problem cordova-plugin-device@2.1.0 breaks existing projects that (npm caret) reference ^2.x.x and use Cordova versions < 9 ### What is expected to happen? cordova-plugin-device@2.1.0 should not break existing projects that (npm caret) reference ^2.x.x and use Cordova versions < 9 ### What does actually happen? Installing "cordova-plugin-device" for android Failed to restore plugin "cordova-plugin-device" from config.xml. You might need to try adding it again. Error: code: engine.platform or engine.scriptSrc is not defined in custom engine "cordova-electron" from plugin "cordova-plugin-device" for android warn ## Information Clone https://github.com/hexagon-ecosys/cordova812-helloWorld and follow its README ### Command or Code cordova prepare ### Environment, Platform, Device ### Version information node 16.14.2 npm 8.5.0 cordova 8.1.2 This is probably not a supported configuration, but hopefully this bug helps someone else. There are a couple of solutions - 1. hard-set the reference to 2.0.3 to NOT pull the electron support related changes introduced in 2.1.0. 2. Upgrade Cordova to at least 9. I tested 9.0.0, 10.0.0 and 11.0.0 where this problem is not reproducible. ## Checklist - [x ] I searched for existing GitHub issues - [ ] 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. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org