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:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user