I have found similar problems on search (issues with third parties libraries on production build).
@ngrx/state Works fine in dev build.
But when in production mode, the module seems not to be there (I got a type error because the reducer is undefined).
I guess it’s a tree-shaking issue, but have no clue how to fix it.
My ionic info:
cli packages: (/home/guilherme/.nvm/versions/node/v8.0.0/lib/node_modules)
@ionic/cli-utils : 1.12.0 ionic (Ionic CLI) : 3.12.0
cordova (Cordova CLI) : 7.0.1
@ionic/app-scripts : 3.0.0 Cordova Platforms : android 6.2.3 browser 4.1.0 Ionic Framework : ionic-angular 3.6.1
Node : v8.0.0 npm : 5.0.3 OS : Linux 4.4
backend : pro