punycode is deprecated in npm - what should I replace it with?

Discussão em 'Angular' iniciado por Ben Taliadoros, Outubro 10, 2024.

  1. 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.

    Continue reading...

Compartilhe esta Página