-
Notifications
You must be signed in to change notification settings - Fork 85
[email protected] / Cordova CLI 10 fails to restore plugins from package.json #106
Comments
I have seen this issue with my cordova-sqlite-storage "spec" test app when using Cordova CLI 10, seems to go away when I switch to Cordova CLI 9 regardless of cordova-osx version 5 vs 6. I have updated the title and confirmed this as a bug with help wanted. P.S. I have also observed that after UPDATE January 2022: still seems to be an issue with Cordova CLI 11 |
How do we even debug this? I don't have experience developing the cordova platforms and have no idea where to look to find the issue. |
We are archiving this repository following Apache Cordova's Deprecation Policy. We will not continue to work on this repository. Therefore all issues and pull requests are being closed. Thanks for your contribution. |
Bug Report
Problem
What is expected to happen?
cordova-osx should restore plugins from
package.json
when runningcordova platform add osx
. The plugins' native and JS code should run before thedeviceready
event is fired.What does actually happen?
Plugins declared in
package.json
are successfully added to the native macOS (Xcode) project, but their code is not run. As a result, the WebView is not able to access exported definitions (i.e. window.device for cordova-plugin-device).Information
package.json
:platforms/osx/www/cordova_plugins.js
platforms/osx/cordova-macos-test/config.xml
andplatforms/osx/osx.json
are missing plugin declarations.Command or Code
Please see alalamav/cordova-macos-test for a detailed description of the problem and reproduction steps.
Environment, Platform, Device
macOS
Version information
Checklist
The text was updated successfully, but these errors were encountered: