Stop using deprecated punycode (prints console warnings). Switch to using "punycode/"

Resolved 💬 4 comments Opened Feb 26, 2025 by eastlondoner Closed Mar 12, 2025

When running claude the following warning is produced.

(node:24583) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
    at node:punycode:3:9
    at BuiltinModule.compileForInternalLoader (node:internal/bootstrap/realm:402:7)
    at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:341:10)
    at loadBuiltinModule (node:internal/modules/helpers:109:7)
    at loadBuiltinWithHooks (node:internal/modules/cjs/loader:1177:15)
    at Function._load (node:internal/modules/cjs/loader:1251:20)
    at TracingChannel.traceSync (node:diagnostics_channel:322:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:234:24)
    at Module.require (node:internal/modules/cjs/loader:1496:12)
    at require (node:internal/modules/helpers:135:16)

if you add a dependency on punycode and replace "punycode" with "punycode/" after build this will be solved trivially: https://www.npmjs.com/package/punycode

View original on GitHub ↗

This issue has 4 comments on GitHub. Read the full discussion on GitHub ↗