@ionic-native not supported by @ionic/angular 7 and breaks builds

Since there is a dependency issue this breaks app flow builds due to the dependency throwing an error.

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR! 
npm ERR! While resolving: photo-gallery@0.0.1
npm ERR! Found: rxjs@7.5.7
npm ERR! node_modules/rxjs
npm ERR!   rxjs@"~7.5.0" from the root project
npm ERR! 
npm ERR! Could not resolve dependency:
npm ERR! peer rxjs@"^5.5.0 || ^6.5.0" from @ionic-native/core@5.36.0
npm ERR! node_modules/@ionic-native/core
npm ERR!   @ionic-native/core@"^5.36.0" from the root project
npm ERR!   peer @ionic-native/core@"^5.1.0" from @ionic-native/background-mode@5.36.0
npm ERR!   node_modules/@ionic-native/background-mode
npm ERR!     @ionic-native/background-mode@"^5.36.0" from the root project
npm ERR! 
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR! 
npm ERR! See /Users/cooneycreative/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/cooneycreative/.npm/_logs/2023-05-03T18_22_04_687Z-debug-0.log

You need to switch to awesome-cordova-plugins which was announced back 2021.

1 Like