From c5e134d0358b7548bebe60b5707366b861c2fe28 Mon Sep 17 00:00:00 2001 From: Bjorn Lu Date: Wed, 14 Sep 2022 22:08:34 +0800 Subject: [PATCH] Fix console.error filtering (#4748) --- .changeset/nice-peaches-swim.md | 5 +++++ packages/astro/src/runtime/server/jsx.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/nice-peaches-swim.md diff --git a/.changeset/nice-peaches-swim.md b/.changeset/nice-peaches-swim.md new file mode 100644 index 000000000..a9f303f8a --- /dev/null +++ b/.changeset/nice-peaches-swim.md @@ -0,0 +1,5 @@ +--- +'astro': patch +--- + +Fix console.error filtering diff --git a/packages/astro/src/runtime/server/jsx.ts b/packages/astro/src/runtime/server/jsx.ts index 6041d514d..95a347abc 100644 --- a/packages/astro/src/runtime/server/jsx.ts +++ b/packages/astro/src/runtime/server/jsx.ts @@ -222,4 +222,5 @@ function filteredConsoleError(msg: any, ...rest: any[]) { msg.includes('https://reactjs.org/link/invalid-hook-call'); if (isKnownReactHookError) return; } + originalConsoleError(msg, ...rest); }