cli icon indicating copy to clipboard operation
cli copied to clipboard

(node:23249) [DEP0040] DeprecationWarning: The punycode module is deprecated

Open edocbuhtig opened this issue 10 months ago • 5 comments

Environment

Description

$npx react-native run-ios (node:23249) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) info Found Xcode project "rc_demo_ios_app.xcodeproj" info No booted devices or simulators found. Launching first available simulator...

** BUILD FAILED **

Reproducible Demo

https://youtu.be/7px98MaspaE

edocbuhtig avatar Apr 09 '24 18:04 edocbuhtig

hey, it looks like you didn't install Cocoapods, please run inside your project: bundle install cd ios && bundle exec pod install and then try running run-ios again.

szymonrybczak avatar Apr 10 '24 12:04 szymonrybczak

I would recommend you use the LTS(long term support) version of the node. I was getting the same error on the current version (21.x.x). Stopped getting punycode deprecated warning after I reverted back to the LTS v20.12.2.

archisvaze avatar Apr 11 '24 16:04 archisvaze

(node:77235) [DEP0040] DeprecationWarning: The punycode module is deprecated. Please use a userland alternative instead. (Use node --trace-deprecation ... to show where the warning was created) Server running at http://localhost:3000

Shouldn't have to roll back to outdated version.

jalargo avatar Apr 15 '24 01:04 jalargo

Shouldn't have to roll back to outdated version.

The latest LTS release is not an outdated version!

It is actually the recommended version to install for most users. LTS means Long term support. It won't be outdated for many years

archisvaze avatar Apr 15 '24 03:04 archisvaze

Shouldn't have to roll back to outdated version.

The latest LTS release is not an outdated version!

It is actually the recommended version to install for most users. LTS means Long term support. It won't be outdated for many years

To each their own. Encountered this warning on another app I was working on as well and in both cases it seemed like an incompatibility with MongoDB.

jalargo avatar Apr 15 '24 14:04 jalargo

Solved in https://github.com/react-native-community/cli/pull/2381, more context here.

szymonrybczak avatar Jun 24 '24 18:06 szymonrybczak