You are using Cordova v9 maybe?
If so, that’s probably the root of your issue as some changes introduced with v9 aren’t backwards compatible with the plugins (https://cordova.apache.org/announcements/2019/03/22/cordova-cli-release-9.0.0.html)
- Report the issue in the plugin and if possible provide a PR to solve the dependency issue
- Temporarily downgrade your Cordova to v8.1.2 to build your project till the compatibility problem is solved and published