In a situation where I would expect an exception to appear on the screen (react-error-overlay) when it occurred, I was late in noticing the problem because it did not appear on the screen.
observed fact ts
console.log("will report");
throw new TypeError("report");
Now the will report appears in the console, but no TypeError error message appears on the screen or in the console.
cause
console.log("report1");
throw new TypeError("report");
...
})
.catch((error: unknown) => {
Sentry.captureException(error);
});
- Sentry.captureException(error);
+ throw error;
- 
This page is auto-translated from /nishio/無意識に例外を握りつぶしてた using DeepL. If you looks something interesting but the auto-translated English is not good enough to understand it, feel free to let me know at @nishio_en. I'm very happy to spread my thought to non-Japanese readers.