DeprecationWarning: The 'punycode' module is deprecated when running ng add @angular/fire
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.
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, checkpackage.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:
- Create a new Angular 19 application:
ng new my-angular-app cd my-angular-app - Run the
ng add @angular/fireschematic:ng add @angular/fire - 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:
This issue does not seem to follow the issue template. Make sure you provide all the required information.
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.