diff --git a/packages/react-email/src/utils/get-email-component.ts b/packages/react-email/src/utils/get-email-component.ts index e3eeb5a4de..958e3ab6cd 100644 --- a/packages/react-email/src/utils/get-email-component.ts +++ b/packages/react-email/src/utils/get-email-component.ts @@ -95,7 +95,7 @@ export const getEmailComponent = async ( if (m in staticNodeModulesForVM) { // eslint-disable-next-line @typescript-eslint/no-unsafe-return - return staticNodeModulesForVM[m]; + return staticNodeModulesForVM[m as keyof typeof staticNodeModulesForVM]; } // eslint-disable-next-line @typescript-eslint/no-var-requires, @typescript-eslint/no-useless-template-literals