Skip to content

Commit 2a8675a

Browse files
committedOct 14, 2024
fix(react-email): Missing util/types for imports
1 parent 1b22b21 commit 2a8675a

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed
 

‎.changeset/brave-pumas-march.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"react-email": patch
3+
---
4+
5+
Add util/types as a module

‎packages/react-email/src/utils/static-node-modules-for-vm.ts

+2
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ import tls from 'node:tls';
3434
import tty from 'node:tty';
3535
import url from 'node:url';
3636
import util from 'node:util';
37+
import utilTypes from 'node:util/types';
3738
import v8 from 'node:v8';
3839
import vm from 'node:vm';
3940
import workerThreads from 'node:worker_threads';
@@ -81,6 +82,7 @@ export const staticNodeModulesForVM = {
8182
tty,
8283
url,
8384
util,
85+
'util/types': utilTypes,
8486
v8,
8587
vm,
8688
'worker_threads': workerThreads,

0 commit comments

Comments
 (0)
Please sign in to comment.