Closed chadokruse closed 5 years ago
To silence BugSnag TypeError: Illegal Invocation
errors caused by fbclid
parameter:
const bugsnagClient = bugsnag({
apiKey: <key>, // Notify Key - is public
appVersion: <version>,
beforeSend: function(report) {
const params = new URLSearchParams(location.search);
const fbclidCheck = params.get('fbclid');
if (fbclidCheck && report.errorClass === 'TypeError' && report.errorMessage === 'Illegal invocation') {
report.ignore();
}
},
});
If it is, use one of these solutionsDocs: https://docs.bugsnag.com/platforms/javascript/configuration-options/
To force issue for local testing purposes: