Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DeprecationWarning: The punycode module is deprecated. #1841

Open
dy0gu opened this issue Dec 25, 2024 · 0 comments
Open

DeprecationWarning: The punycode module is deprecated. #1841

dy0gu opened this issue Dec 25, 2024 · 0 comments
Labels
Type: Bug Confirmed bug

Comments

@dy0gu
Copy link

dy0gu commented Dec 25, 2024

Describe the Bug

I recently updated to a newer Node version and noticed a deprecation warning when using this package, for which I believe there is still no open issue.

Running the development preview with Node >= v21.0.0 outputs the following warning:

[DEP0040] DeprecationWarning: The "punycode" module is deprecated. Please use a userland alternative instead.

I haven't confirmed if this happens with the other CLI commands as I mainly stick to the preview and render().

Looking at issues from other projects it seems Node officially deprecated punycode themselves from v21.0.0 onwards and developers should now migrate to the respective alternative.

It would be great if you could update your dependencies that rely on this module, the warning is a bit annoying and raises some eyebrows when I go to show people how it integrates amazingly with a TS backend.

I should note that the package appears to run perfectly on newer Node versions apart from this isolated warning which does not interfere with any functionality at this time.

Which package is affected (leave empty if unsure)

react-email

Link to the code that reproduces this issue

https://github.com/resend/react-email/tree/canary/packages/create-email/template

To Reproduce

Using the official provided template, simply run npm run dev with Node v21.0.0 or greater, the warning will then be shown.

Expected Behavior

No warning for the punycode deprecated module.

What's your node version? (if relevant)

v22.8.0

@dy0gu dy0gu added the Type: Bug Confirmed bug label Dec 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Bug Confirmed bug
Projects
None yet
Development

No branches or pull requests

1 participant