When I open my massive wizard (one page component, many slides, too many components, many directives etc.) I’ve got the following error the very first time I load everything:
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)
Which brings me absolutely no valuable informations to find out what’s happening.
Any idea how could I get more stacktraces to at least have a start point to find out what is the problem?
I read somebody’s comment on the link provided by reedrichards above and changed my code to remove “dismissOnPageChange” like below and it worked absolutely fine.
I was experiencing this issue and kept the dismissOnPageChange in place and removed my intentional dismiss directives. I was lucky, I suppose, because all my actions forced the current page to pop.
My fix for the same problem (the loader would not dimiss with the code solutions above)
this.loading.dismiss()
.catch((reason: any) => {
this.loggerService.error('SpinnerService - loading.dismiss()', reason);
**this.loading.dismissAll(); //had to add this or it would not dismiss**
});
This can also happen if you have a bad chain of events or loop. For example, if use a loadingController with no dismiss, because the if() statement calls a value that doesn’t exist yet (remember to use then() and promises for that).