Skip to content
This repository has been archived by the owner on May 4, 2022. It is now read-only.

Ionic v2 nightly-build: Loading => Promise exception #145

Open
ionitron-bot bot opened this issue Nov 28, 2018 · 1 comment
Open

Ionic v2 nightly-build: Loading => Promise exception #145

ionitron-bot bot opened this issue Nov 28, 2018 · 1 comment
Labels

Comments

@ionitron-bot
Copy link

ionitron-bot bot commented Nov 28, 2018

Original issue by @peterpeterparker on 2016-12-11T20:02:03Z

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant