Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 71531

Ionic 2 error not showing in nav.push(somePage);

$
0
0

@fathermonkey wrote:

I'm working on a Ionic 2 app with about 5 pages.
What is happening is that I can only see error in pages that are set to rootPage( I have a side menu)

After I set the rootPage, and inside that view do this.nav.push(anotherPage) error in anotherPage are not shown. The app does not navigate and not error is shown.

I debugged the code and found the error being thrown at
line 2174 of es6-shim.js

var promiseReactionJob = function (handler, promiseCapability, argument) {
var handlerResult, f;
if (promiseCapability === PROMISE_FAKE_CAPABILITY) {
// Fast case, when we don't actually need to chain through to a
// (real) promiseCapability.
return handler(argument);
}
try {
handlerResult = handler(argument);
f = promiseCapability.resolve;
} catch (e) { HERE I CAN SEE THE ERROR
handlerResult = e;
f = promiseCapability.reject;
}
f(handlerResult);
};

Regards.

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 71531

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>