From 371b523cab07465c798932aadd28e02d39e7c458 Mon Sep 17 00:00:00 2001 From: Diljit Date: Wed, 23 Oct 2024 14:48:29 +0530 Subject: [PATCH] chore: fix errors related to service worker in dev mode (#37012) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ## Description In dev mode the service worker was throwing the following error. This fix moves all the app constants import from the ce file. Screenshot 2024-10-22 at 8 31 24 PM Fixes #`Issue Number` _or_ Fixes `Issue URL` > [!WARNING] > _If no issue exists, please create an issue first, and check with the maintainers if the issue is valid._ ## Automation /ok-to-test tags="@tag.All" ### :mag: Cypress test results > [!TIP] > 🟢 🟢 🟢 All cypress tests have passed! 🎉 🎉 🎉 > Workflow run: > Commit: ec42a0d66f76e26048a39a7623e829054fae4845 > Cypress dashboard. > Tags: `@tag.All` > Spec: >
Wed, 23 Oct 2024 09:04:03 UTC ## Communication Should the DevRel and Marketing teams inform users about this change? - [ ] Yes - [x] No ## Summary by CodeRabbit - **Chores** - Updated import paths for routing constants to improve organization. - No changes to functionality or public interfaces. --- app/client/src/ce/utils/serviceWorkerUtils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/client/src/ce/utils/serviceWorkerUtils.ts b/app/client/src/ce/utils/serviceWorkerUtils.ts index e32455dbcd07..1d359270188b 100644 --- a/app/client/src/ce/utils/serviceWorkerUtils.ts +++ b/app/client/src/ce/utils/serviceWorkerUtils.ts @@ -9,7 +9,7 @@ import { VIEWER_CUSTOM_PATH, BUILDER_PATH_DEPRECATED, VIEWER_PATH_DEPRECATED, -} from "ee/constants/routes/appRoutes"; +} from "../constants/routes/appRoutes"; interface TMatchResult { basePageId?: string;