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); }