From 892fd25701ff3f17a47af7fbd8e577810e2aabcc Mon Sep 17 00:00:00 2001 From: gabriel miranda Date: Mon, 16 Sep 2024 11:53:16 -0300 Subject: [PATCH 1/2] fix(react-email): MongoDB import failing compilation --- packages/react-email/src/utils/static-node-modules-for-vm.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/react-email/src/utils/static-node-modules-for-vm.ts b/packages/react-email/src/utils/static-node-modules-for-vm.ts index 2992461684..9abc00b345 100644 --- a/packages/react-email/src/utils/static-node-modules-for-vm.ts +++ b/packages/react-email/src/utils/static-node-modules-for-vm.ts @@ -30,6 +30,7 @@ import repl from 'node:repl'; import stream from 'node:stream'; import stringDecoder from 'node:string_decoder'; import timers from 'node:timers'; +import timersPromises from 'node:timers/promises'; import tls from 'node:tls'; import tty from 'node:tty'; import url from 'node:url'; @@ -78,6 +79,7 @@ export const staticNodeModulesForVM = { stream, 'string_decoder': stringDecoder, timers, + 'timers/promises': timersPromises, tls, tty, url, From d01abb374d30c67614537b66c70857dffbae958a Mon Sep 17 00:00:00 2001 From: gabriel miranda Date: Mon, 16 Sep 2024 11:53:46 -0300 Subject: [PATCH 2/2] add changeset --- .changeset/young-terms-sparkle.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/young-terms-sparkle.md diff --git a/.changeset/young-terms-sparkle.md b/.changeset/young-terms-sparkle.md new file mode 100644 index 0000000000..dae5ec8881 --- /dev/null +++ b/.changeset/young-terms-sparkle.md @@ -0,0 +1,5 @@ +--- +"react-email": patch +--- + +Add missing timers/promises Node module for `email dev`