Closed cyril-colin closed 3 years ago
I've added the plugin to the list, but FYI, since capacitor 3.3.0 you can add any cordova plugin to the static list by adding it to the capacitor config file inside the cordova object https://github.com/ionic-team/capacitor/pull/5175
I've added the plugin to the list, but FYI, since capacitor 3.3.0 you can add any cordova plugin to the static list by adding it to the capacitor config file inside the cordova object #5175
Hi jcesarmobile. Is there documentation for this? I added a "staticPlugins" array with "cordova-plugin-google-analytics" to the "cordova" object in capacitor.config.json and I get the same error. This is with @capacitor/core 3.3.1.
You have to update @capacitor/cli, not core (well, you should also update core, but the change is on the cli) https://capacitorjs.com/docs/config
Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Capacitor, please create a new issue and ensure the template is fully filled out.
Bug Report
Capacitor Version
Platform(s)
ios
Current Behavior
The command
npx cap sync ios
failed with error:Expected Behavior
The command should build as usual.
Other Technical Details
cordova-plugin-google-analytics
version 1.9.0Additional Context
This issue https://github.com/ionic-team/capacitor/issues/5158#issuecomment-948369681 tells that we have to make request to get our plugin working again. So I do it 😄
Thanks for reading !