Skip to content

DeprecationWarning: The 'punycode' module is deprecated when running ng add @angular/fire #3649

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

Open
damiansire opened this issue May 7, 2025 · 2 comments

Comments

@damiansire
Copy link

DeprecationWarning: The 'punycode' module is deprecated when running ng add @angular/fire

Description:

When adding @angular/fire to a new Angular 19 application using the ng add @angular/fire schematic, a DeprecationWarning related to Node.js's punycode module is displayed.

Image

Versions:

  • Angular CLI: (Please specify, e.g., 19.x.x)
  • Angular Core: (Please specify, e.g., 19.x.x)
  • @angular/fire: (Please specify the version installed by ng add, check package.json)
  • Node.js: (Please specify, e.g., v18.x.x, v20.x.x)
  • firebase-tools: 14.2.2 (as per the log)

Steps to Reproduce:

  1. Create a new Angular 19 application:
    ng new my-angular-app
    cd my-angular-app
  2. Run the ng add @angular/fire schematic:
    ng add @angular/fire
  3. During the installation and setup process, select the following Firebase features when prompted:
    • Authentication
    • Firestore
    • Realtime Database

Expected Behavior:

The ng add @angular/fire schematic should complete without displaying deprecation warnings related to Node.js modules.

Current Behavior:

During the execution of the schematic, after selecting Firebase features and while dependencies are being installed or files are being configured, the following warning appears in the console:

Image

@google-oss-bot
Copy link

This issue does not seem to follow the issue template. Make sure you provide all the required information.

@rgant
Copy link

rgant commented May 7, 2025

What is the (complete) output of npm list punycode?

What is the (complete) output of ng version?

Because for me, punycode doesn't appear to be a dependency of @angular/fire.

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

No branches or pull requests

3 participants