[Ionic v3] White screen when building with --prod

After updating to Ionic v3, I get a white screen in my app when building with --prod - anyone else experiencing this?

I get no errors during build or in console when running.

Your system information:

Cordova CLI: 6.5.0
Ionic Framework Version: 3.0.0
Ionic CLI Version: 2.2.2
Ionic App Lib Version: 2.2.1
Ionic App Scripts Version: 1.3.0
ios-deploy version: 1.9.1
ios-sim version: 5.0.13
OS: macOS Sierra
Node Version: v6.9.1
Xcode version: Xcode 8.3 Build version 8E162
  • I followed the upgrade guide
  • Dev builds runs fine
  • I’m not using any of the experimental flags for reduced bundle size

Any ideas how I might debug this?

Aha. Downgrading to app-scripts 1.2.5 makes it work again.

app-scripts 1.3 purges decorators by default. My app uses ngrx/store + ngrx/effects and relies on effects firing on app start, but they don’t since @Effect decorators are being purged (I guess).

Changing package.json like this makes it work again:

      "config": {
        "ionic_purge_decorators": false


Seems that v1.3.1 fix the issue