Skip to content

Deprecation Warning: punycode module used in whatwg-url #2935

@madhanmaaz

Description

@madhanmaaz

When running the app with deprecation tracing enabled, I get the following warning related to the deprecated punycode module:

(node:12252) [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:399:7)
    at BuiltinModule.compileForPublicLoader (node:internal/bootstrap/realm:338:10)
    at loadBuiltinModule (node:internal/modules/helpers:114:7)
    at Function._load (node:internal/modules/cjs/loader:1100:17)
    at TracingChannel.traceSync (node:diagnostics_channel:315:14)
    at wrapModuleLoad (node:internal/modules/cjs/loader:218:24)
    at Module.require (node:internal/modules/cjs/loader:1340:12)
    at require (node:internal/modules/helpers:141:16)
    at Object.<anonymous> (C:\Users\soldier64\Documents\Github\sellspree\node_modules\whatwg-url\lib\url-state-machine.js:2:18)

This warning originates from the whatwg-url package, which imports the deprecated core punycode module.

Suggested Fix:

Try updating the whatwg-url package to the latest version where the deprecated punycode module is no longer used.

Environment:
OS: Windows 10 Pro Education / 19045.2965
Node.js version: v22.11.0

Please consider updating the dependency to eliminate the usage of deprecated core modules

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions