-
Notifications
You must be signed in to change notification settings - Fork 694
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
Node.js 22: "[DEP0040] DeprecationWarning: The punycode
module is deprecated." when using npm module serve
#802
Comments
|
Probably not worth the mention, but yes it's present in node v22.5.0.
|
I've updated the original posting with the latest versions serve |
Line 47 in d06104a
|
|
I'm struggling with this problem in a Next.js 14 project. The warning appears whenever my dev server via |
Does your error come from The following may give you additional debug information: export NODE_OPTIONS='--trace-deprecation'
npm run dev The following will tell you if you have npm ls serve |
It seems to be coming from another module, as
|
In that case you are in the wrong issue list for your problem. Unfortunately I couldn't see where it's coming from in your logs. They seem to have lost their formatting, so are very difficult to read. See if you can identify any module in the logs which you have installed, and check the corresponding repo issue list to see if DEP0040 has been reported there and if there is a newer version with a fix available. Also, the following should help: npm ls punycode Good luck! |
I'm still very thankful for your help and advice which got me closer towards a solution!! Will see what's the best thing I can do. I'll see if the error logs can give me some more information about the module it's originating from. I already tried
Let me play around with it and find options... |
did you find a solution ? |
@alessiotortora |
hi ! I have encountered this problem in the installation of my script js : Chargement des pools Raydium... |
Node.js is planning to remove this built-in module from its standard library so you can you third-party library for this: |
thank's for your answer ! but the issue keep coming ... (node:1759) [DEP0040] DeprecationWarning: The |
https://www.npmjs.com/package/@raydium-io/raydium-sdk?activeTab=dependencies shows that it does not depend on serve so this is the wrong repo to be asking for help with @raydium-io/raydium-sdk. The repo https://github.com/raydium-io/raydium-sdk is archived and so there will be no fixes from them. I would suggest that you search in the |
Attention: serve only!The issue [DEP0040] DeprecationWarning: The punycode module is deprecated here in this repository is for the npm module serve only! If you are using serve and you are experiencing this problem, make sure that you update to minimum serve@14.2.4. If you are not using serve then you are in the wrong place to report a problem or request help for the above warning. Please do not add comments for issues with other npm modules! |
@AndyBitz |
Ho ! sorry, I'm a beginner ! thank's for your time and have a good one ! |
hi, everyone, i find problem when npm run build in my project |
punycode
module is deprecated."punycode
module is deprecated." when using npm module serve
This issue list is only for problems with the npm module |
@MikeMcC399 Oops my bad. I had a bunch of tabs open trying to debug this and commented on the wrong one. I deleted the comment. Thanks for the heads up! |
#802 (comment) asks users not to comment in this issue regarding the error message caused by modules other than If you are reading this and you are not using |
punycode
module is deprecated." #789Description
Running
serve
under Node.js22.x
version causes a deprecation notice similar to the following to be displayed:Node.js v22.0.0 (Current) was released on Apr 24, 2024.
Steps to reproduce
On Ubuntu22.04.4
LTS with Node.jsv22.0.0
On Ubuntu
22.04.5
LTS with Node.jsv22.9.0
shows
Library version
14.2.2
and14.2.3
Node version
andv22.0.0
v22.9.0
The text was updated successfully, but these errors were encountered: