Silent failures

22 views
Skip to first unread message

keathm...@gmail.com

unread,
Jan 6, 2016, 10:42:33 AM1/6/16
to SystemJS
Just getting started with jspm & ES6 modules (using babel) and I find that errors in import statements and elsewhere are just failing silently with no output to the console. For example

import {bogus} from 'somewhere';
bogus();

Will not produce any error in Safari (unless somewhere is invalid). In Chrome, you'll get an error for the function call, but not the import.

Is there some option to enable additional error output?

Guy Bedford

unread,
Jan 6, 2016, 11:30:40 AM1/6/16
to keathm...@gmail.com, SystemJS
Because the loader uses promises, you need to attach a catch handler to get errors in environments that don't support reporting unhandled rejections like Safari.

The error will certainly include a 404 error stack though for a failed somewhere load in this case.

--
You received this message because you are subscribed to the Google Groups "SystemJS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to systemjs+u...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages