Skip to content

Commit 50a59a5

Browse files
Merge pull request #204 from alanconway/coo-1668-resize-error
COO-1668: fix: Console crash on displaying alerting rules
2 parents 0428701 + cb5da28 commit 50a59a5

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

web/webpack.config.ts

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,18 @@ const config: Configuration = {
6969
devMiddleware: {
7070
writeToDisk: true,
7171
},
72+
client: {
73+
overlay: {
74+
runtimeErrors: (error) => {
75+
// This benign browser error is triggered by ResizeObserver callbacks that cause
76+
// layout changes within the same frame. It does not indicate a real problem.
77+
if (error.message === 'ResizeObserver loop completed with undelivered notifications.') {
78+
return false;
79+
}
80+
return true;
81+
},
82+
},
83+
},
7284
},
7385
plugins: [
7486
new ConsoleRemotePlugin(),

0 commit comments

Comments
 (0)