Facing this issue in 3.0.1: If the loading is dismissed then following error is thrown:
Uncaught (in promise): false
at g (polyfills.js:3)
at l (polyfills.js:3)
at l (polyfills.js:3)
at polyfills.js:3
at t.invokeTask (polyfills.js:3)
at Object.onInvokeTask (core.es5.js:4136)
at t.invokeTask (polyfills.js:3)
at n.runTask (polyfills.js:3)
at a (polyfills.js:3)
Code:
let loading = loadingController.create({
spinner : 'hide',
content : `Loading`
});
loading.present();
//Do some work
loading.dismiss().then(() => {
//Exit work
});
Thanks @rapropos my issue was an async method and hitting the loading.dismiss without completing the async method (similar to the link you posted). Changing the position of the loading.dismiss(); to the code block after completion of async method solved the issue for me.