From b8f9bc107c755381a6439b32d4b22d80641f0a96 Mon Sep 17 00:00:00 2001 From: Wuesteon Date: Thu, 4 Dec 2025 23:02:26 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(chat-backend):=20remove=20ty?= =?UTF-8?q?pe-only=20ConfigService=20import?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixed NestJS dependency injection error in ChatService by converting type-only import to regular import. Root cause: Type-only imports are erased at compile time, causing NestJS to fail dependency injection at runtime. Error: "Nest can't resolve dependencies of the ChatService (?, DATABASE_CONNECTION)" This was the same issue we fixed in mana-core-auth services. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- apps/chat/apps/backend/src/chat/chat.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/chat/apps/backend/src/chat/chat.service.ts b/apps/chat/apps/backend/src/chat/chat.service.ts index f9e298925..e39e8e723 100644 --- a/apps/chat/apps/backend/src/chat/chat.service.ts +++ b/apps/chat/apps/backend/src/chat/chat.service.ts @@ -1,5 +1,5 @@ import { Injectable, Inject, Logger } from '@nestjs/common'; -import { type ConfigService } from '@nestjs/config'; +import { ConfigService } from '@nestjs/config'; import { eq } from 'drizzle-orm'; import { type AsyncResult, ok, err, ValidationError, ServiceError } from '@manacore/shared-errors'; import { GoogleGenerativeAI } from '@google/generative-ai';