babel-plugin-ttag icon indicating copy to clipboard operation
babel-plugin-ttag copied to clipboard

DeprecationWarning on NodeJS v22: The `punycode` module is deprecated.

Open alyyousuf7 opened this issue 1 year ago • 1 comments

I'm using ttag-cli, which uses babel-plugin-ttag

ttag-cli version: 1.10.18 babel-plugin-ttag version: 1.8.16

When I run npx ttag po2json [file], I get the following warning on NodeJS 22.13.1:

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

This warning goes away if revert to NodeJS 20.10.0.

Here is the response from npm ls punnycode:

[email protected] /Users/ali.yousuf/code/test-ttag
└─┬ [email protected]
  └─┬ [email protected]
    └─┬ [email protected]
      └─┬ [email protected]
        └── [email protected]

alyyousuf7 avatar Feb 12 '25 03:02 alyyousuf7

Let's update ajv, that should probably solve it!

dimaqq avatar Mar 19 '25 06:03 dimaqq