ionic-team / ionic-app-scripts

App Build Scripts for Ionic Projects
http://ionicframework.com/
MIT License
608 stars 304 forks source link

Components / App not responding (behave like crash) when running '--prod' flag #1300

Open ShiChuanTaylors opened 7 years ago

ShiChuanTaylors commented 7 years ago

Short description of the problem:

After adding a 'read-more' component and used in one of the page, the app starts to behave differently in normal build and production build..

What behavior are you expecting?

Dev build and Prod build should work exactly the same, but it is not.

Steps to reproduce: You can use this repo for the code base

  1. Run ionic cordova run android --device -lcs
  2. Observe functionality works fine, and can go to detail page with the component used
  3. Rerun / rebuild with ionic cordova run android --device --prod
  4. Observe when click the "openModal" button, the app stop responding..

Which @ionic/app-scripts version are you using?

cli packages: (/usr/local/lib/node_modules)

    @ionic/cli-utils  : 1.15.2
    ionic (Ionic CLI) : 3.15.2

global packages:

    cordova (Cordova CLI) : 7.1.0

local packages:

    @ionic/app-scripts : 3.0.1
    Cordova Platforms  : android 6.3.0
    Ionic Framework    : ionic-angular 3.8.0

System:

    Android SDK Tools : 26.1.1
    ios-deploy        : 1.9.2
    ios-sim           : 4.1.1
    Node              : v7.6.0
    npm               : 4.1.2
    OS                : macOS Sierra
    Xcode             : Xcode 9.0.1 Build version 9A1004
yurafox commented 6 years ago

I have similar problem on my current project. LoadingCtrl's dismiss() method in --prod mode doesn't removes popover, which "covers" page. That's why UI freezes.