How do you disable uglify in ionic4/cordova/android/prod?

Bugged with a Static injection error for a cordova --prod build on device. Cant figure out which module/service throws the error, while, it works on a debug build on device. With webpack4, is there a way to disable uglify and minify in under enableProd?

Error: StaticInjectorError(a)[k -> r]:
StaticInjectorError(Platform: core)[k -> r]:
NullInjectorError: No provider for r!

Info here:
Ionic:
ionic (Ionic CLI) : 4.12.0 (/usr/local/lib/node_modules/ionic)
Ionic Framework : @ionic/angular 4.0.0
@angular-devkit/build-angular : 0.12.4
@angular-devkit/schematics : 7.2.4
@angular/cli : 7.3.9
@ionic/angular-toolkit : 1.2.3
Cordova:
cordova (Cordova CLI) : 8.1.2 (cordova-lib@8.1.1)
Cordova Platforms : android 7.1.4
Cordova Plugins : cordova-plugin-ionic-keyboard 2.1.3, cordova-plugin-ionic-webview 2.5.1, (and 14 other plugins)
System:
Android SDK Tools : 26.1.1 (/home/abc/Android/Sdk)
NodeJS : v10.16.0 (/usr/bin/node)
npm : 6.4.1
OS : Linux 4.15

you have to sort out how many plugins have you added inside your project and import these plugins inside your app.module.ts file in provider section.

cheers!!

Did that with no success. Apart, did reinstall each of those natives individually too. How do I disable uglify to expose who is the culprit. Webpack4 seems to enableProd mode differently than just turning off such optimizations

just run this command as ionic serve and open localhost using chrome browser then right click goto inspect page and in console section there is showing error kindly share that error to me…

On debug runs on both browser and device, ‘ionic serve’, ‘ionic cordova build’, this error doesn’t appear. Below error is thrown only on ‘ionic cordova build android --prod’ build.

Error: StaticInjectorError(a)[k -> r]:
StaticInjectorError(Platform: core)[k -> r]:
NullInjectorError: No provider for r!

Ionic build —aot

Does the same strict checking but may not give more verbose output