I added the sentry bundle to head and init right after the body tag.
If I use the console:
Sentry.captureException(new Error("This is my fake error message"));
It captures the error.
But if I just type an undefined function, for example “sdflkhskdfjhsdf();” it doesn’t capture the error…
Any ideas why?