Philippe Corrèges
Philippe Corrèges

Reputation: 689

How to fix the " DeprecationWarning: The `punycode` module is deprecated." error with nestjs?

I am running a nestjs app and am getting the following error:

(node:28552) [DEP0040] DeprecationWarning: The `punycode` module is deprecated. Please use a userland alternative instead.

I have gone through all the answers and I have not found any solution for me. For instance I looked for require("punycode") to change it in node-modules folder files and this require is not written anywhere.

How is it possible to fix this please? My start script is "start": "nest start".

For me, downgrading node version is not a solution.

Upvotes: -1

Views: 830

Answers (1)

Philippe Corrèges
Philippe Corrèges

Reputation: 689

AS of today, I updated all my packages to their last version using ncu and npm install. The warning is still here.

Upvotes: -1

Related Questions