Sune Westphalen
Sep 3, 2018 · 1 min read

I can’t know exactly what’s wrong on your end, but a great tip is to add .catch to all of your promises, with a descriptive console log. This makes it easier to pinpoint exactly where you get an error, and perhaps output the error in a more readable fashion (some error handlers would simply output [object Object] or similar).

something().catch((err) => { console.error('Caught error after something()', err); throw err; });

    Sune Westphalen

    Written by

    Full-stack developer with love for Laravel, Angular and Ionic.