From 5226f04e86bd5d07278a0743d1b7c32c160c0f1e Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Sat, 4 Jul 2026 20:45:05 +0200 Subject: [PATCH] fix(email): use automatic JSX runtime so templates render under tsx Templates import no React (react-email convention); tsx resolves each file's nearest tsconfig, so jsx:preserve made esbuild emit classic React.createElement and background email rendering threw 'React is not defined'. Claude-Session: https://claude.ai/code/session_012Bnvt1MghwHj4qQRxuQUGa --- packages/email/tsconfig.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/email/tsconfig.json b/packages/email/tsconfig.json index 09f37c1f8..ff3f7fe67 100644 --- a/packages/email/tsconfig.json +++ b/packages/email/tsconfig.json @@ -1,7 +1,7 @@ { "extends": "@reactive-resume/config/tsconfig.base.json", "compilerOptions": { - "jsx": "preserve", + "jsx": "react-jsx", "lib": ["ESNext", "DOM"] } }