From 3a0dff5b0e245340a81bbf04635c76ef1f5c5972 Mon Sep 17 00:00:00 2001 From: Anthony LC Date: Wed, 9 Oct 2024 11:44:02 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(service-worker)=20fix=20circular?= =?UTF-8?q?=20import=20problem?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit When we were installing the service-worker, errors were thrown because of circular imports. This commit fixes the problem by being more explicit about the imports. --- .../apps/impress/src/features/service-worker/ApiPlugin.ts | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/frontend/apps/impress/src/features/service-worker/ApiPlugin.ts b/src/frontend/apps/impress/src/features/service-worker/ApiPlugin.ts index e9d406b0..9d3c441b 100644 --- a/src/frontend/apps/impress/src/features/service-worker/ApiPlugin.ts +++ b/src/frontend/apps/impress/src/features/service-worker/ApiPlugin.ts @@ -1,11 +1,7 @@ import { WorkboxPlugin } from 'workbox-core'; -import { - Doc, - DocsResponse, - LinkReach, - Role, -} from '@/features/docs/doc-management'; +import { Doc, DocsResponse } from '@/features/docs/doc-management'; +import { LinkReach, Role } from '@/features/docs/doc-management/types'; import { DBRequest, DocsDB } from './DocsDB'; import { RequestSerializer } from './RequestSerializer';