From 3a17d4d2cda5e294fbbe12a9090237e2f4973ab3 Mon Sep 17 00:00:00 2001 From: Jiachi Liu Date: Thu, 20 Jun 2024 16:09:19 +0200 Subject: [PATCH] fix: bad script tag in layout hydration error (#66998) --- .../internal/helpers/hydration-error-info.ts | 1 - .../acceptance-app/hydration-error.test.ts | 30 +++++++++++++------ 2 files changed, 21 insertions(+), 10 deletions(-) diff --git a/packages/next/src/client/components/react-dev-overlay/internal/helpers/hydration-error-info.ts b/packages/next/src/client/components/react-dev-overlay/internal/helpers/hydration-error-info.ts index 318514a181..932cda3dfb 100644 --- a/packages/next/src/client/components/react-dev-overlay/internal/helpers/hydration-error-info.ts +++ b/packages/next/src/client/components/react-dev-overlay/internal/helpers/hydration-error-info.ts @@ -17,7 +17,6 @@ export const hydrationErrorState: HydrationErrorState = {} // https://github.com/facebook/react/blob/main/packages/react-dom/src/__tests__/ReactDOMHydrationDiff-test.js used as a reference const htmlTagsWarnings = new Set([ - 'Warning: Cannot render a sync or defer