From bc4757a30ed94cfba7067549fded742aaca80bfc Mon Sep 17 00:00:00 2001 From: Rasmus Puls <14924038+rpuls@users.noreply.github.com> Date: Sat, 28 Dec 2024 22:35:53 +0100 Subject: [PATCH] improved module resolution --- backend/src/subscribers/product-upsert.ts | 6 +++--- backend/tsconfig.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/subscribers/product-upsert.ts b/backend/src/subscribers/product-upsert.ts index b3c2ff7..83577fd 100644 --- a/backend/src/subscribers/product-upsert.ts +++ b/backend/src/subscribers/product-upsert.ts @@ -1,7 +1,7 @@ import type { SubscriberArgs, SubscriberConfig } from '@medusajs/framework' -import { IProductModuleService } from '@medusajs/types' -import { Modules } from '@medusajs/utils' -import { ProductEvents, SearchUtils } from '@medusajs/utils' +import { IProductModuleService } from '@medusajs/framework/types' +import { Modules } from '@medusajs/framework/utils' +import { ProductEvents, SearchUtils } from '@medusajs/framework/utils' import { MeiliSearchService } from '@rokmohar/medusa-plugin-meilisearch' export default async function productUpsertHandler({ event: { data }, container }: SubscriberArgs<{ id: string }>) { diff --git a/backend/tsconfig.json b/backend/tsconfig.json index fa29b86..10c19af 100644 --- a/backend/tsconfig.json +++ b/backend/tsconfig.json @@ -4,7 +4,7 @@ "allowJs": true, "esModuleInterop": true, "module": "commonjs", - "moduleResolution": "node", + "moduleResolution": "node16", "emitDecoratorMetadata": true, "experimentalDecorators": true, "skipLibCheck": true,