I'm new to requireJS, and I'm trying to figure out why I can't get normal errors.
I'm using this, right after the requirejs file is loaded, but before any modules are loaded:
requirejs.onError = function (err) {
console.log(err.requireType);
if (err.requireType === 'timeout') {
console.log('modules: ' + err.requireModules);
}
throw err;
};
But I'm still getting the completley vague error:
Error: script error
http://requirejs.org/docs/errors.html#scripterror @ http://localhost/wampir/lib/require.js:8
"scripterror"
Is there a way to make this give me the actual error and line number?
I've seen this question but I've tried several answers from there, and they don't change anything...