-
Notifications
You must be signed in to change notification settings - Fork 872
Closed
Labels
Package: react-emailThis is the CLI we generally use as just `email` on the temrinal.This is the CLI we generally use as just `email` on the temrinal.Type: BugConfirmed bugConfirmed bug
Description
Describe the Bug
When trying to use the URL() constructor in an email surfaces the error ReferenceError: URL is not defined in the preview.
Which package is affected (leave empty if unsure)
react-email
Link to the code that reproduces this issue
https://github.com/matchai/react-email-issue-repro/blob/url-issue-repro/emails/url-repro.tsx
To Reproduce
Add new URL("https://example.com") anywhere in your email code.
Expected Behavior
The global URL object functions as it does in other JavaScript environments.
What's your node version? (if relevant)
21.2.0
Metadata
Metadata
Assignees
Labels
Package: react-emailThis is the CLI we generally use as just `email` on the temrinal.This is the CLI we generally use as just `email` on the temrinal.Type: BugConfirmed bugConfirmed bug
