1
0
mirror of https://github.com/home-assistant/frontend.git synced 2026-04-02 00:27:49 +01:00

Filter ResizeObserver loop errors from dev server overlay (#30125)

The @rspack/dev-server overlay catches ResizeObserver loop errors as
runtime crashes, showing a full-screen error overlay that blocks
development. These errors are benign — they originate from
lit-virtualizer (used by ha-data-table) and simply mean not all
resize observations could be delivered in a single animation frame.

Add a client.overlay.runtimeErrors filter to the dev server config
that suppresses ResizeObserver loop messages while still surfacing
all real runtime errors.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Logan Rosen
2026-03-13 02:28:58 -04:00
committed by GitHub
parent 3bb870f52a
commit b3b8f1a38a

View File

@@ -57,6 +57,12 @@ const runDevServer = async ({
directory: contentBase, directory: contentBase,
watch: true, watch: true,
}, },
client: {
overlay: {
runtimeErrors: (error) =>
!error?.message?.includes("ResizeObserver loop"),
},
},
proxy, proxy,
}, },
compiler compiler