I’m not sure what’s going on here… but I continue to get errors when building and adding platform. I’m on latest version of ionic and have tried downgrading too.
This is the error:
Failed to restore plugin “cordova-plugin-media-capture” from config.xml. You might need to try adding it again. Error: Version of installed plugin: “firstname.lastname@example.org” does not satisfy dependency plugin requirement “cordova-plugin-file@^4.0.0”. Try --force to use installed plugin as dependency.
In my config.xml and package.json I have these dependencies:
And a bunch of other dependencies that also have dependencies for this. However, when the script comes to install cordova-plugin-file plugin, it grabs version 5.0.0. This isn’t compatible with another plugin I’m using so it throws an error - but why is it fetching version 5.0.0 if I’ve explicitly set 4.3.3?
Another plugin has a dependency for cordova-plugin-file, such as this one:
So my guess is that it’s finding this plugin first, and installing the latest version of cordova-plugin-file - and then fails when it gets to another plugin that is dependant on an earlier version… however, moving the cordova-plugin-file dependency to the top of the config.xml doesn’t seem to help.
Does anyone have any suggestions?