Use ionic2 alpha, app is blank

I started an app by cli :

  1. ionic start app --v2
  2. ionic platform add android
  3. ionic run

I didn’t change the code.

but app in device is blank,I don’t know why.

My system info is:
Cordova CLI: 5.3.3
Ionic Version: 2.0.0-alpha.30
Ionic CLI Version: 2.0.0-alpha.9
Ionic App Lib Version: 0.5.0-alpha.9
OS:
Node Version: v4.2.1

@Wall-E @mhartington
Any suggestion will be appreciate~

nobody can help you without any error code or output of the javacript console.

i testet the alpha with the “cutePuppyPics”-Starter and it worked:

@bengtler Thank you for your suggestion! I really want to see some error code ,but there is nothing.

Android has the issue,but iOS doesn’t.

Hey there, so you may want to try running gulp build first before deploying to the actual device. Since there’s a build step now, we need to make sure that everything has been compiled down to regular es5 code.

image

gulp build is ok.

just like it :
1、>ionic start myTest --v2
2、>ionic serve
that’s ok !

ionic serve has no issue.
When i deploy to the actual androido device, it only shows blank.

If you use something like the debugging tools in Safari or GapDebug whilst your phone is connected you should be able to see the console with any error messages. If you don’t see anything initially, restart the application through the debugging tool to make sure you get any error messages that occur right at startup.

Chances are there is a Javascript error that is stopping your application from running (maybe plugin related).

@mhartington @Wall-E @bengtler @joshmorony
I just find the reason!
My test device is samsung galaxy note 3.
When I use another device,it works well.
Samsung…I’m disappointed in you~~~

That’s good ! ahaha ~

it’s always samsung *house md intro playing in background

^^

Hi,

I’m having the same issue here… Although, I’m using Android emulator (Nexus 4, Android 4.0)

This is a snippet with an error from logcat:

E/Web Console( 1583): EXCEPTION: Error during instantiation of BrowserDetails! (Token Promise -> DynamicComponentLoader -> Compiler -> RuntimeCompiler -> ProtoViewFactory -> Renderer -> DomRenderer -> AnimationBuilder -> BrowserDetails). at file:///android_asset/www/build/js/app.bundle.js:36232
E/Web Console( 1583): ORIGINAL EXCEPTION: TypeError: undefined is not a function at file:///android_asset/www/build/js/app.bundle.js:36232
E/Web Console( 1583): ORIGINAL STACKTRACE: at file:///android_asset/www/build/js/app.bundle.js:36232
E/Web Console( 1583): TypeError: undefined is not a function
E/Web Console( 1583): at file:///android_asset/www/build/js/app.bundle.js:9419:16393
E/Web Console( 1583): at BrowserDomAdapter.requestAnimationFrame (file:///android_asset/www/build/js/app.bundle.js:36501:94)
E/Web Console( 1583): at RafQueue._raf (file:///android_asset/www/build/js/app.bundle.js:28371:50)
E/Web Console( 1583): at new RafQueue (file:///android_asset/www/build/js/app.bundle.js:28367:15)
E/Web Console( 1583): at BrowserDetails.raf (file:///android_asset/www/build/js/app.bundle.js:28353:22)
E/Web Console( 1583): at BrowserDetails.doesElapsedTimeIncludesDelay (file:///android_asset/www/build/js/app.bundle.js:28342:15)
E/Web Console( 1583): at new BrowserDetails (file:///android_asset/www/build/js/app.bundle.js:28331:15)
E/Web Console( 1583): at file:///android_asset/www/build/js/app.bundle.js:12299:46
E/Web Console( 1583): at Injector._instantiate (file:///android_asset/www/build/js/app.bundle.js:14081:28)
E/Web Console( 1583): at Injector._instantiateProvider (file:///android_asset/www/build/js/app.bundle.js:14041:26) at file:///android_asset/www/build/js/app.bundle.js:36232
V/StatusBar( 1583): Executing action: _ready

Does it ring a bell to anyone?

Check what’s causing:

TypeError: undefined is not a function