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. Please use a userland alternative instead. #219

Open
niklasastrom opened this issue Dec 12, 2024 · 0 comments

Comments

@niklasastrom
Copy link

niklasastrom commented Dec 12, 2024

This library has a dependency on node-fetch version 2.x, which has a dependency on an old version of whatwg-url. whatwg-url is using the (in node22) deprecated punycode module, so now when using this library in a node22 environment, the DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. error pops up over and over.

It works when overriding the whatwg-url version in the package.json

    "overrides": {
        "[email protected]": {
            "whatwg-url": "^14.0.0"
        }
    },

but a proper solution seems to be to update node-fetch in this library to version 3.x that uses a newer version of whatwg-url

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant