It turns out in this case that I was passing undefined to a function that was expecting a string. I have check on that function but still the error wasn’t descriptive.
If I wrap the code where I think the error is in a try...catch then I can log a proper error e.g.
try {
let url = new URLParser(this.props.alert.url);
} catch (e) {
console.log(e)
}
ReferenceError: fdsfA is not defined
at AlertForm.render (AlertForm.jsx:51)
at ReactCompositeComponentMixin._renderValidatedComponentWithoutOwnerOrContext (react.browserify.js?345ed1d2c9fb8e823a80b4ddddc390a5a28d2b87:7365)
at ReactCompositeComponentMixin._renderValidatedComponent (react.browserify.js?345ed1d2c9fb8e823a80b4ddddc390a5a28d2b87:7392)
<snip>
I cloned https://github.com/meteor/simple-todos-react and added sanjo:jasmine with meteor add sanjo:jasmine. Then I added adas.fdsfA() to the render function in App.jsx. The error shows correctly in the browser (latest Chrome).
It would be great if you could give the steps to reproduce the problem. Then I will fix it.