I have application where some critical issues are reported with console.error but are not thrown so application might continue to run - possibly in cri
console.error
thrown
Based on @Marc Schmid's solution I came up with the following working example, if you link to the Sentry CDN files.