yarnpkg / yarn

The 1.x line is frozen - features and bugfixes now happen on https://github.com/yarnpkg/berry
https://classic.yarnpkg.com
Other
41.37k stars 2.72k forks source link

puny code problem #9026

Closed Samillionaire closed 5 months ago

Samillionaire commented 5 months ago

Screenshot (199)

i am getting this error --- The punycode module is deprecated. Please use a userland alternative instead. at node:punycode:3:9 server is unable to listen the changes but just keeps giving this warning how to fix it , what the alternative of this and how to install it.. in this successfully so the project doesent get affected by this.

MikeMcC399 commented 5 months ago

@Samillionaire

What is the result of running the following as suggested by the deprecation warning?

node --trace-deprecation server.js
Samillionaire commented 5 months ago

here it is also attaching my folder structure for reference 😊


From: Mike McCready @.> Sent: Saturday, January 13, 2024 5:06 PM To: yarnpkg/yarn @.> Cc: Samillionaire @.>; Mention @.> Subject: Re: [yarnpkg/yarn] puny code problem (Issue #9026)

@Samillionairehttps://github.com/Samillionaire

What is the result of running the following as suggested by the deprecation warning?

node --trace-deprecation server.js

— Reply to this email directly, view it on GitHubhttps://github.com/yarnpkg/yarn/issues/9026#issuecomment-1890425971, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXNCVWDYEEJE7Z4ESYEODODYOJWUXAVCNFSM6AAAAABBZGKODGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQGQZDKOJXGE. You are receiving this because you were mentioned.Message ID: @.***>

MikeMcC399 commented 5 months ago

@Samillionaire

here it is

I cannot see any log in your reply which comes from running

node --trace-deprecation server.js
Samillionaire commented 5 months ago

actually no reply is coming ,its just the warning . if i try to update something in my server.js file , it is shown in cmd everytime , but now its not showing the update on cmd but this warning only.


From: Mike McCready @.> Sent: Saturday, January 13, 2024 5:24 PM To: yarnpkg/yarn @.> Cc: Samillionaire @.>; Mention @.> Subject: Re: [yarnpkg/yarn] puny code problem (Issue #9026)

@Samillionairehttps://github.com/Samillionaire

here it is

I cannot see any log in your reply which comes from running

node --trace-deprecation server.js

— Reply to this email directly, view it on GitHubhttps://github.com/yarnpkg/yarn/issues/9026#issuecomment-1890430154, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXNCVWEEBDB7SJJHJLKTNOLYOJYY3AVCNFSM6AAAAABBZGKODGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQGQZTAMJVGQ. You are receiving this because you were mentioned.Message ID: @.***>

Samillionaire commented 5 months ago

actually no reply is coming ,its just the warning if i try to update something in my server.js file , it is shown in cmd everytime , but now its not showing the update on cmd but this warning only.


From: Mike McCready @.> Sent: Saturday, January 13, 2024 5:24 PM To: yarnpkg/yarn @.> Cc: Samillionaire @.>; Mention @.> Subject: Re: [yarnpkg/yarn] puny code problem (Issue #9026)

@Samillionairehttps://github.com/Samillionaire

here it is

I cannot see any log in your reply which comes from running

node --trace-deprecation server.js

— Reply to this email directly, view it on GitHubhttps://github.com/yarnpkg/yarn/issues/9026#issuecomment-1890430154, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXNCVWEEBDB7SJJHJLKTNOLYOJYY3AVCNFSM6AAAAABBZGKODGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQGQZTAMJVGQ. You are receiving this because you were mentioned.

MikeMcC399 commented 5 months ago

@Samillionaire

Samillionaire commented 5 months ago

ok Thank you very much


From: Mike McCready @.> Sent: Saturday, January 13, 2024 5:40 PM To: yarnpkg/yarn @.> Cc: Samillionaire @.>; Mention @.> Subject: Re: [yarnpkg/yarn] puny code problem (Issue #9026)

@Samillionairehttps://github.com/Samillionaire

— Reply to this email directly, view it on GitHubhttps://github.com/yarnpkg/yarn/issues/9026#issuecomment-1890434088, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AXNCVWFJ6NPIRNQHLDK3DTDYOJ2S5AVCNFSM6AAAAABBZGKODGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQOJQGQZTIMBYHA. You are receiving this because you were mentioned.Message ID: @.***>

RDIL commented 5 months ago

Duplicate of #9013

IgorGanapolsky commented 2 weeks ago

@Samillionaire

What is the result of running the following as suggested by the deprecation warning?

node --trace-deprecation server.js

How do we use this with React Native?

MikeMcC399 commented 2 weeks ago

@IgorGanapolsky

You can also set the environment variable NODE_OPTIONS, then run the command which was showing a deprecation warning. For instance:

export NODE_OPTIONS='--trace-deprecation' 
IgorGanapolsky commented 2 weeks ago

@IgorGanapolsky

You can also set the environment variable NODE_OPTIONS, then run the command which was showing a deprecation warning. For instance:

export NODE_OPTIONS='--trace-deprecation' 

Thanks, but where would I see the punycode reference from yarn build output?

MikeMcC399 commented 2 weeks ago

@IgorGanapolsky

Thanks, but where would I see the punycode reference from yarn build output?

Which version of Yarn are you using?

IgorGanapolsky commented 1 week ago

v1.22.22