Hello Everybody,
I could not find anything similar on the net so I’m trying my luck here:
We are building a new Ionic app based on Version 3.9.2 of the framework. Starting out with normal loading pages everything worked just fine. Now we switched to lazy loaded pages. After some initial trouble I got everything working. Except the routing when switching pages:
I get a sporadic error “Uncaught Error: Error: Uncaught (in promise): Error: Cannot match any routes. URL Segment:…” when switching pages, regardless of setting rootPage, popping from the nav-controller or pushing a new page. When looking at the URL in the browser-window then the segment part after the “#” is missing.
Unfortunately, this does not happen every time, it’s completely sporadic. I can switch the page several times and on the fifth, eight, random time the error occurs.
Interessting enough is, that the page actually is displayed correctly when I close the error message and the app behaves normally. Sometimes though, I’m thrown completely back to the first page of the app (the one that is set as root in the app.component.ts file).
Has anyone experienced similar problems?