You are right, I have the same problem. I reported it this week and jsayol already fixed it…but the Ionic Team didn’t merged the PR for the RC.4
P.S.: Note it breaks in the chrome debugger but in real device, even if it breaks in the background, it seems that it still work aka the app doesn’t crash…at least for me
opened 08:02PM - 11 Dec 16 UTC
closed 09:50PM - 28 Nov 18 UTC
ionitron: v3
Ionic2 version: 2.0.0-rc.3-201612100458
Following code taken from my app:
… navigateToDetail() {
let loading = this.loadingController.create({
dismissOnPageChange: true
});
loading.present().then(() => {
this.navController.push(DetailsPage, {
stuff: this.stuff
});
});
}
will produce following errors the very first time the page is pushed:
error_handler.js:53 Error: Uncaught (in promise): false
at s (polyfills.js:3)
at s (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (ng_zone.js:227)
at t.invokeTask (polyfills.js:3)
at e.runTask (polyfills.js:3)
at i (polyfills.js:3)
at HTMLElement.invoke (polyfills.js:3)
Tried the same above code in other places in my app, also tried to used var self=this didn't change it, nothing helped. Same code with official RC.3 doesn't produce any errors.
P.S.: Everything is compiling fine. Angular is up-to-date 2.2.1. Node_modules was deleted and installed again.
P.P.S.: Just tried to remove the "dismissOnPageChange: true" part. Of course the loading stay pending but except that everything went fine, new page is pushed, no error in the stacktrace
jsayol find a quick win fix and created a PR
if anyone of the ionic team read this, plz push the PR, it’s a super fast quick win for the quality of RC.4
3 Likes