From 33321242506e1194e499049fc54797f91bd23692 Mon Sep 17 00:00:00 2001 From: hailin Date: Sun, 7 Dec 2025 01:40:46 -0800 Subject: [PATCH] fix(identity-service): change dynamic import to static import MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Dynamic imports with path aliases (@/domain/events) don't work at runtime. Changed to static import to fix module resolution error. πŸ€– Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- .../src/application/services/user-application.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/identity-service/src/application/services/user-application.service.ts b/backend/services/identity-service/src/application/services/user-application.service.ts index f66945cf..092abb7e 100644 --- a/backend/services/identity-service/src/application/services/user-application.service.ts +++ b/backend/services/identity-service/src/application/services/user-application.service.ts @@ -18,6 +18,7 @@ import { BlockchainClientService } from '@/infrastructure/external/blockchain/bl import { MpcWalletService } from '@/infrastructure/external/mpc'; import { ApplicationError } from '@/shared/exceptions/domain.exception'; import { generateRandomIdentity } from '@/shared/utils'; +import { MpcKeygenRequestedEvent } from '@/domain/events'; import { AutoCreateAccountCommand, RecoverByMnemonicCommand, RecoverByPhoneCommand, AutoLoginCommand, RegisterCommand, LoginCommand, BindPhoneNumberCommand, @@ -127,7 +128,6 @@ export class UserApplicationService { account.clearDomainEvents(); // 10. 发布 MPC Keygen 请求事仢 (θ§¦ε‘εŽε°η”Ÿζˆι’±εŒ…) - const { MpcKeygenRequestedEvent } = await import('@/domain/events'); const sessionId = crypto.randomUUID(); await this.eventPublisher.publish(new MpcKeygenRequestedEvent({ sessionId,