Ionic2 RC1 builds giving white screen of death


#1

This is console.log when I run ionic run ios. Screen stays white, after very slow splash screen animation. Same on Android. Same on BuddyBuild. What is this? How to fix this? How to debug this?

    1     751608   error    ORIGINAL STACKTRACE:
    0     751607   error    EXCEPTION: undefined is not an object (evaluating 'qst.Base64.decode')
    3     751611   error    EXCEPTION: undefined is not an object (evaluating 'qst.Base64.decode')
    2     751610   error    urlBase64Decode@http://192.168.2.101:8100/build/main.js:36:1612
    _updateTaskCount@http://192.168.2.101:8100/build/polyfills.js:3:14841
    invokeTask@http://192.168.2.101:8100/build/polyfills.js:3:14131
    runTask@http://192.168.2.101:8100/build/polyfills.js:3:11399
    i@http://192.168.2.101:8100/build/polyfills.js:3:8013
    u@http://192.168.2.101:8100/build/polyfills.js:2:7864
    http://192.168.2.101:8100/build/polyfills.js:2:7988
    r@http://192.168.2.101:8100/build/polyfills.js:2:6435
    6     751614   error    [object Object]
    7     751677   log      DEVICE READY FIRED AFTER, 129, ms

#2

I have the same problem.


#3

Interestingly, a problem does not have the same problem with the same git commit.

Things he did different: He install directly IonicRC1 without RC0 in between. But if that’s the root cause, hard to say. He recommends attaching Safari Debugger.


#4

By the way, I got rid of that problem by updating Cordova, and by fixing some more upgrade-specifc bugs and now the error is gone, but the splash is never going away. Did you achieve something yourselve?


#5

This may not be related but I had a js-base64 error trying ot use angular2-jwt. The solution was to install the types:

Cannot find module ‘js-base64’

npm install @types/js-base64 --save

I find it’s often easier to diagnose a build issue by running ‘ionic build browser’ as ‘ionic-serve’ seems to skip ahead even if the build failed.


RC0 - library dependency export (jwt-angular2, js-base64)