From bc6d8d1e8cffd0a9fe08ff55fec2c641c738cb91 Mon Sep 17 00:00:00 2001 From: Shrikant Sharat Kandula Date: Tue, 16 Jan 2024 11:59:37 +0530 Subject: [PATCH] chore: fix TypeError during dev (#30317) I see the below error when I do `yarn start`. This change helps, and shouldn't have an impact on underlying functionality. ![shot-2024-01-16-05-42-24](https://github.com/appsmithorg/appsmith/assets/120119/65f9f050-38b2-425f-8482-26a8ab5f1612) --- app/client/craco.common.config.js | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/app/client/craco.common.config.js b/app/client/craco.common.config.js index cc06ed0a7d..065f12acdc 100644 --- a/app/client/craco.common.config.js +++ b/app/client/craco.common.config.js @@ -112,12 +112,10 @@ module.exports = { ignoreWarnings: [ function ignoreSourcemapsloaderWarnings(warning) { return ( - (warning.module && - warning.module.resource.includes("node_modules") && - warning.details && - warning.details.includes("source-map-loader")) || - warning.module.resource.includes("/node_modules/@babel/standalone/babel.js") - ); + (warning.module?.resource.includes("node_modules") && + warning.details?.includes("source-map-loader")) || + warning.module?.resource.includes("/node_modules/@babel/standalone/babel.js") + ) ?? false; }, ], plugins: [