I'm using the npm module punycode
in my Angular project.
VsCode tells me it's deprecated and https://nodejs.org/api/punycode.html#punycode_punycode
confirms:
The version of the punycode module bundled in Node.js is being deprecated. In a future major version of Node.js this module will be removed. Users currently depending on the punycode module should switch to using the userland-provided Punycode.js module instead.
The suggestion is to switch to the 'userland-provided' module. What is that?
There is a link to https://github.com/mathiasbynens/punycode.js and I tried including that in my package.json instead of 'punycode' and I get the same error.
const punycode = require('punycode/');
? – Bossismimport punycode from "punycode/";
for example. – BossismArch
orManjaro
dosudo pacman -S nodejs-lts-iron
forv20.14.0
LTS version, refer here. Also, say yes forRemove nodejs? [y/N] y
when installing. – Isotone