From 516f8f56c2e9f1e2bc30aa775843035282166db1 Mon Sep 17 00:00:00 2001 From: "sentry[bot]" <39604003+sentry[bot]@users.noreply.github.com> Date: Sun, 20 Sep 2026 05:35:26 +0000 Subject: [PATCH] fix(sentry): Prevent NotFoundError from rrweb DOM patches --- src/layouts/LoginLayout/LoginLayout.tsx | 4 ++-- src/sentry.ts | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/layouts/LoginLayout/LoginLayout.tsx b/src/layouts/LoginLayout/LoginLayout.tsx index 654e82ea37..96d8973ca0 100644 --- a/src/layouts/LoginLayout/LoginLayout.tsx +++ b/src/layouts/LoginLayout/LoginLayout.tsx @@ -16,7 +16,7 @@ const LoginLayout: React.FC = ({ children }) => { const location = useLocation() return ( - <> +
{location.search.includes('expired') && } }> @@ -25,7 +25,7 @@ const LoginLayout: React.FC = ({ children }) => {
) } diff --git a/src/sentry.ts b/src/sentry.ts index 2c53256335..d2a5843ab9 100644 --- a/src/sentry.ts +++ b/src/sentry.ts @@ -42,6 +42,12 @@ const deClutterConfig = { // See http://toolbar.conduit.com/Developer/HtmlAndGadget/Methods/JSInjection.aspx 'conduitPage', ...customIgnoredErrors, + // rrweb (Sentry Replay) monkey-patches DOM methods and can conflict with + // React's reconciler when its initialization fails (e.g. adoptedStyleSheets + // already defined by a browser extension). These errors are third-party + // DOM conflicts, not app bugs. + /Failed to execute 'insertBefore' on 'Node'/, + /Failed to execute 'removeChild' on 'Node'/, ], denyUrls: [ // Facebook flakiness