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 #1829

Open
CodeFoxLk opened this issue Jun 18, 2024 · 2 comments
Labels
external This issue is blocked on a bug with the actual product. priority: p2 Moderately-important priority. Fix may not be included in next release. type: cleanup An internal cleanup or hygiene concern.

Comments

@CodeFoxLk
Copy link

CodeFoxLk commented Jun 18, 2024

when import { OAuth2Client } from "google-auth-library"; this warning appears and when removed the import, it disappears

(node:32561) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.
(Use `node --trace-deprecation ...` to show where the warning was created)

OS - MacOs sonoama v.14.5
node -v = 20.14.0
npm -v = 10.8.1
"google-auth-library": "^9.11.0",

@CodeFoxLk CodeFoxLk added priority: p2 Moderately-important priority. Fix may not be included in next release. type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jun 18, 2024
@danielbankhead
Copy link
Member

This is caused by an upstream dependency; once we release our next major it should work on Node 22 (which has this deprecation message).

@danielbankhead danielbankhead added type: cleanup An internal cleanup or hygiene concern. and removed type: bug Error or flaw in code with unintended results or allowing sub-optimal usage patterns. labels Jul 1, 2024
@mevero
Copy link

mevero commented Oct 1, 2024

temporary solution: add override in package.json
"overrides": { "whatwg-url": "^14.0.0" },

@danielbankhead danielbankhead added the external This issue is blocked on a bug with the actual product. label Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
external This issue is blocked on a bug with the actual product. priority: p2 Moderately-important priority. Fix may not be included in next release. type: cleanup An internal cleanup or hygiene concern.
Projects
None yet
Development

No branches or pull requests

3 participants