Skip to content
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:23249) [DEP0040] DeprecationWarning: The punycode module is deprecated #2356

Open
edocbuhtig opened this issue Apr 9, 2024 · 5 comments

Comments

@edocbuhtig
Copy link

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

@szymonrybczak
Copy link
Collaborator

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.

@archisvaze
Copy link

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.

@jalargo
Copy link

jalargo commented Apr 15, 2024

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

@archisvaze
Copy link

archisvaze commented Apr 15, 2024

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

@jalargo
Copy link

jalargo commented Apr 15, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants