angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

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

Open damiansire opened this issue 9 months ago • 2 comments

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

damiansire avatar May 07 '25 11:05 damiansire

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

google-oss-bot avatar May 07 '25 11:05 google-oss-bot

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.

rgant avatar May 07 '25 11:05 rgant