Is Sentry capturing errors thrown in scripts added in index.html
of a React app?
#9201
Unanswered
filiptammergard
asked this question in
Q&A
Replies: 1 comment 8 replies
-
Hey! Out of the box Sentry does not capture these, but you can enable the optional import * as Sentry from "@sentry/browser";
import { ContextLines } from "@sentry/integrations";
Sentry.init({
dsn: "__PUBLIC_DSN__",
integrations: [new ContextLines()],
}); |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey!
We had a problem with a third-party script defined in
index.html
that made our app crash for some customers. But it wasn't reported to Sentry. Is this the intended behavior or am I missing something?Is it possible to configure Sentry to report those errors as well?
Beta Was this translation helpful? Give feedback.
All reactions