Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion configs/webpack-config-compass/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
"react-refresh": "^0.10.0",
"source-map-loader": "^4.0.1",
"style-loader": "^3.2.1",
"webpack": "^5.94.0",
"webpack": "^5.102.1",
"webpack-bundle-analyzer": "^4.10.2",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^4.15.2",
Expand Down
9 changes: 6 additions & 3 deletions configs/webpack-config-compass/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -282,12 +282,15 @@ export function createElectronRendererConfig(
process.env.DISABLE_DEVSERVER_OVERLAY === 'true'
? false
: {
runtimeErrors: (error) => {
runtimeErrors: (error: unknown) => {
// ResizeObserver errors are harmless and expected in some cases.
// We currently get them when opening the Assistant drawer.
if (
error?.message ===
'ResizeObserver loop completed with undelivered notifications.'
error &&
typeof error === 'object' &&
'message' in error &&
error.message ===
'ResizeObserver loop completed with undelivered notifications.'
) {
// eslint-disable-next-line no-console
console.warn(error);
Expand Down
Loading