My Ionic app was working fine and I haven't done anything to it but suddenly I am getting this error and I don't know why.
"Error: Uncaught (in promise): removeView was not found
My Ionic app was working fine and I haven't done anything to it but suddenly I am getting this error and I don't know why.
"Error: Uncaught (in promise): removeView was not found
I managed to solve it by deleting the LoadingController from my component.
Please try the below which worked for me
it says that you called to loading.dismiss() before load.presenet() ended. you should try
Here is one for the alertController but works very similar.
When you want to manually dismiss the Ionic loading you may need to follow the below example. Which is working fine I have tested in ionic labs.
Note: If you call this.loading.dismiss() manually, I don't recommend to use dismissOnPageChange, you are probably dismissing the same loading twice.
Why the below solution works?
I think
this.loading.present()
is an asynchronous method, so we can't callthis.loading.dismiss()
manually whenthis.loading.present()
is still running.So if we need to dismiss manually we need to make sure that loading is present already and have a view to dismiss it, we should use other method after
present().then
like the following code.However I'm not sure why we didn't have this problem in the old framework version (2.0.3).
Reference Link,hence posted only useful and working tips and code.
I hope this helps!
I removed loading.dismiss function and solved it.