From b68b6b9847173d27dfb8bda74a20ced61e992f27 Mon Sep 17 00:00:00 2001 From: Ghadi Mhawej Date: Tue, 1 Oct 2024 16:01:38 +0300 Subject: [PATCH] fix: fix missing react-dom package from vc-api --- apps/vc-api/package.json | 3 ++- apps/vc-api/src/external/email-sender/email-sender.service.ts | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/vc-api/package.json b/apps/vc-api/package.json index a7c8361..2685543 100644 --- a/apps/vc-api/package.json +++ b/apps/vc-api/package.json @@ -33,6 +33,7 @@ "vitest": "^1.3.1", "@react-email/components": "^0.0.25", "react": "18.3.1", - "resend": "^4.0.0" + "resend": "^4.0.0", + "react-dom": "18.3.1" } } diff --git a/apps/vc-api/src/external/email-sender/email-sender.service.ts b/apps/vc-api/src/external/email-sender/email-sender.service.ts index e75b249..aeaa928 100644 --- a/apps/vc-api/src/external/email-sender/email-sender.service.ts +++ b/apps/vc-api/src/external/email-sender/email-sender.service.ts @@ -5,6 +5,8 @@ import { ENVIRONMENT_GETTER, IEnvironmentGetter } from '../../core/applications/ import { EmailNotification } from '../../core/domain/entities/emailNotification'; import {createElement} from "react"; import VerificationEmail from './templates/verification-email.template'; +import 'react'; +import 'react-dom/server'; @Injectable() export class EmailSender implements IEmailSender {