Problems when building ionic PWA with --prod paramenter

Hi

Im currently building an ionic PWA deployed on firebase.

When i run the app with ionic serve in local, it works perfect

When i build it with --prod argument like this:
ionic cordova build browser --prod --release

I get this error when the code executes calls like
this.viewController.getActive().name
Uncaught (in promise): navigation stack needs at least one root page

Anyone experienced something like this?
Can anyone point me out where can i find infomation about what --prod argument is for?
and what’s the difference with --release?

ionic info:
    @ionic/cli-utils  : 1.9.2
    ionic (Ionic CLI) : 3.9.2

global packages:
    Cordova CLI : 7.0.1 

local packages:
    @ionic/app-scripts : 2.0.2
    Cordova Platforms  : android 6.2.3 browser 4.1.0
    Ionic Framework    : ionic-angular 3.5.3

System:
    Node : v6.11.2
    npm  : 3.10.10 
    OS   : Linux 4.10

Thank you very much
Best regards