Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error: Uncaught (in promise): removeView was not found #12

Open
vdias38 opened this issue Jun 19, 2017 · 2 comments
Open

Error: Uncaught (in promise): removeView was not found #12

vdias38 opened this issue Jun 19, 2017 · 2 comments

Comments

@vdias38
Copy link
Contributor

vdias38 commented Jun 19, 2017

I've removed the loadingCtrl dismissOnPageChange property to prevent Error: Uncaught (in promise): removeView was not found
Can't find a solution, see:
ionic-team/ionic-framework#11443
https://stackoverflow.com/questions/43828359/ionic-error-uncaught-in-promise-removeview-was-not-found/44515433#44515433

  ionViewDidLoad() {
    let loader = this.loadingCtrl.create({
      content: 'Getting latest entries...',
      //dismissOnPageChange: true
    });

    loader.present().then(() => {
      return this.db.list('/reports/' + this.site.title, {query: query})
      .subscribe(
        data => {
          console.log('Dd data fetched');
          if (Object.keys(data).length) {
            this.rep = this.groupRowsBy(data, 'inventaire');
          } 
          loader.dismiss();   
        },
        err => {
          loader.dismiss();
          console.log('error');
        });
    });
@lostdev
Copy link

lostdev commented Aug 11, 2017

I have this issue too but it turned out to be because I was calling dismiss twice by accident. Only started occurring after upgrading to 3.7.0. The error thrown is valid, but it's really not intuitive / self explanatory; that's the real issue here if you ask me.

@SamiHK
Copy link

SamiHK commented Oct 22, 2018

Pro tip : DO NOT use dismiss() function id you have made the button-type as "submit " and using (ngSubmit)="something()" too which does the same thing as dismiss() [ this way the function would be called twice and second time the view would not be present at the moment to dismiss.]

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

No branches or pull requests

3 participants