Skip to content

Commit

Permalink
Fix: Temporary workaround for excessive JS errors in Sentry (TheOdinP…
Browse files Browse the repository at this point in the history
…roject#3048)

Because:
* The bug reduces our ability to see real errors

This commit:
* Implements one of the fixes suggested here
getsentry/sentry-javascript#5179
  • Loading branch information
ChargrilledChook authored and KevinMulhern committed Jul 9, 2022
1 parent 005a520 commit 42eda19
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/javascript/packs/error_tracking.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,12 @@ Sentry.init({
allowUrls: [
/https?:\/\/(www\.)?theodinproject\.com/,
],
ignoreErrors: [
'Possible side-effect in debug-evaluate',
'Unexpected end of input',
'Invalid or unexpected token',
'missing ) after argument list',
],
});

Sentry.configureScope((scope) => {
Expand Down

0 comments on commit 42eda19

Please sign in to comment.