Compare commits

...

1 Commits

Author SHA1 Message Date
Ashu Ghildiyal
0cdf857d75 fix(sentry): ignore rrweb styleIDMap error from posthog recorder 2026-12-04 10:24:57 +05:30
2 changed files with 13 additions and 0 deletions

View File

@@ -163,6 +163,16 @@ describe('SENTRY_IGNORE_ERRORS', () => {
).toBe(true);
});
it('ignores the bundled rrweb stylesheet mirror crash', () => {
expect(
SENTRY_IGNORE_ERRORS.some((pattern) =>
pattern.test(
"TypeError: Cannot read properties of undefined (reading 'styleIDMap')",
),
),
).toBe(true);
});
it('ignores Safari loading a stale chunk served as index.html', () => {
expect(
SENTRY_IGNORE_ERRORS.some((pattern) =>

View File

@@ -16,6 +16,9 @@ export const SENTRY_IGNORE_ERRORS = [
// Thrown by the bundled posthog-js when its recorder script fails to load, so
// its frames point at our own bundle and the URL check below misses it.
/Called on script loaded before session recording is available/,
// Thrown inside rrweb's StyleSheetMirror, bundled in posthog-js's recorder, so
// its frames point at our own bundle too.
/reading 'styleIDMap'/,
];
// Not UI bugs: 401/403 come from the session or role, ERR_NETWORK from a