Why uncaught type error is not reported?

I get the below error in console:
Uncaught TypeError: Cannot read property ‘AuthorisedOT’ of undefined, which is picked up by window.onerror, but not being reported by raven. I am having a React app built with webpack. Please see below the raven configuration used:

Raven.config(‘Raven DSN’).install()
I need Raven to report all console errors.
Help me if I am missing something?