Exception: TypeError: done is not a function (Freezes app on Samsung)

Testing my Ionic 2 app on a Samsung device, regularly get stuck with this. The app freezes.

EXCEPTION: TypeError: done is not a function
app.bundle.js:54772 EXCEPTION: TypeError: done is not a functionBrowserDomAdapter.logError @ app.bundle.js:54772BrowserDomAdapter.logGroup @ app.bundle.js:54782ExceptionHandler.call @ app.bundle.js:16724(anonymous function) @ app.bundle.js:49920NgZone._notifyOnError @ app.bundle.js:45810errorHandling.onError @ app.bundle.js:45708run @ app.bundle.js:8606(anonymous function) @ app.bundle.js:45723zoneBoundFn @ app.bundle.js:8576
app.bundle.js:54772 STACKTRACE:BrowserDomAdapter.logError @ app.bundle.js:54772ExceptionHandler.call @ app.bundle.js:16726(anonymous function) @ app.bundle.js:49920NgZone._notifyOnError @ app.bundle.js:45810errorHandling.onError @ app.bundle.js:45708run @ app.bundle.js:8606(anonymous function) @ app.bundle.js:45723zoneBoundFn @ app.bundle.js:8576
app.bundle.js:54772 TypeError: done is not a function
at parallel (app.bundle.js:59741)
at beginPlay (app.bundle.js:59102)
at Animation.play (app.bundle.js:59138)
at Animation.progressStart (app.bundle.js:59255)
at Animation.progressStart (app.bundle.js:59252)
at MenuOverlayType.setProgressStart (app.bundle.js:78289)
at Menu.setProgressStart (app.bundle.js:70077)
at LeftMenuGesture.onSlideBeforeStart (app.bundle.js:70368)
at LeftMenuGesture.onDragStart (app.bundle.js:70620)
at Array. (app.bundle.js:69657)

Have you tried adding Crosswalk? I had that problem with two Android phones this week and when I added Crosswalk it all worked ok.

1 Like

Seeing it in my Mac OS X Chrome too - so probably not Android specific.

Crosswalk seems to add 10-15 MB to the package, quite a load, first gonna try and see if there’s a specific reason for this behaviour.

I have the same problem, it seems like it happens when you drag to open a menu. The menu doesn’t show up but the menu backdrop is covering the content of the app which makes it seem like it is freezing. If you inspect it in chrome, you can see there is a console log when you click that says ‘backdrop clicked’.

Updated to Ionic 2.0.0-alpha.37 and is fixed

Great, I’ll check it out!