When upgrading to Ionic 3 I am seeing an ‘Undefined provider’ error being thrown when doing a --prod build. Example
ionic build ios --prod ngc started ... [15:23:29] ionic-app-script task: "build" [15:23:29] Error: Encountered undefined provider! Usually this means you have a circular dependencies (might be caused by using 'barrel' index.ts files.
I am using Ionic 3.0.0 and Ionic Native 3.4~
I tried to find a dependency that was circular but couldnt think of any other upgrades I had made other than making an ionic native upgrade.