-
Notifications
You must be signed in to change notification settings - Fork 13.5k
-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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 Error: Uncaught (in promise): nav controller was destroyed #11454
Comments
Thanks for opening an issue with us. We will look into this soon. |
You could make the method return a promise, it works fine for me. |
@wbhob Actually async-await implicitly returns a promise. Can you provide a code sample? I tried following and it still gives error.
|
You might need to set a blank page as a 'pseudo-splash screen' so to speak, so that onload you have a blank page, and when the data comes back, update from that. Also, be sure to use brackets on the promise (I think) because the one-liner just maps the data and returns whatever is after the arrow. |
Hi, I got the same issue here.
Here is some dependencies.
|
Do either of you have a repo I can check out? |
Not sure if this helps, but I got this error when trying to call Have you tried changing |
I also often get this error but strangely it disappears after I refresh / reload the webpage. |
I also have encountered this problem. this is my component: ERROR Error: Uncaught (in promise): nav controller was destroyed |
Changing |
Also have this problem. My app has root page in app.component.ts (code below) where rootPage set to LoginPage by default and after login's check it change to MenuPage. Menu Page has
If I change default page to MenuPage all works greats and other pages open without errors! If I change rootPage after login's check to page without ion-nav or split-pane also all works great! How can I fix this? app.component.ts:
menu.html:
menu.ts:
|
@jgw96 any updates on this issue? |
Have the same problem:
|
@jgw9 Are you crazy? You closed this issue by stating that it is a duplicate of one which was not resolved. If you are not able to fix it. Please let it be in OPEN state and do not mark it as duplicate! I am facing the same and looking for workaround. |
This is the way issue tracking works. There are always other professions you can try. |
@premcarver: @masimplo is right. If they have two issues open that are the same, then new developments on one will not be synchronized against the other; it is easier to track one issue in one issue page, instead of having 1800 different issues referring to the same problem. |
funny though that the other issue got closed as a duplicate as well 🙈 |
Add-on to @simonhaenisch's note: @jgw96 you closed this one (#11454) and #12401 as duplicates of each other. |
Same issue here, using Auth0, if I login/logout a few times in a row, I end up getting a |
guys i was have the same problem but its fix in 3.6.0 |
@simonhaenisch -
|
@kensodemann ah thanks, I'm running Edit: updated and seems to be gone 👍 |
Thanks for the issue! This issue is being closed due to inactivity. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out. Thank you for using Ionic! |
Ionic version: (check one with "x")
[ ] 1.x
[ ] 2.x
[x] 3.x
I'm submitting a ... (check one with "x")
[x] bug report
[ ] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/
Current behavior:
I'm using lazy loading. If I set rootPage in ngOnInit, I'm getting following error. If I set rootPage at class level, it works. Please see code below. I have to close IonicErrorHandler screen every time because of this error.
Expected behavior:
I shouldn't get following error doesn't matter when I'm setting rootPage.
Steps to reproduce:
Related code:
app.html
This works
This fails with below error
ERROR
Other information:
Ionic info: (run
ionic info
from a terminal/cmd prompt and paste output below):The text was updated successfully, but these errors were encountered: