DeprecationWarning: The 'punycode' module is deprecated when running ng add @angular/fire
- Langage dominant
- TypeScript
- Étoiles
- 7.8k
- Forks
- 2.2k
- Merge moyen
- 22 h 28 min
- PR mergées (30 j)
- 6
Description
## 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`, 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:
```bash
ng new my-angular-app
cd my-angular-app
```
2. Run the `ng add @angular/fire` schematic:
```bash
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:

Guide de contribution
Ouvrir le guide de contribution
Piste de recherche
Reproduisez l’avertissement dans une nouvelle application Angular 19 en exécutant `ng add @angular/fire` et en sélectionnant Authentication, Firestore et Realtime Database. Examinez l’installation des dépendances et la sortie de configuration du schematic afin d’identifier l’origine de l’avertissement `punycode` ; le travail est terminé lorsque la configuration s’achève sans cet avertissement de dépréciation.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- angular, firebase, node.js, typescript
- Domaine
- cli, tooling
- Type d'issue
- Bug
- Difficulté
- 3/5
- Temps estimé
- 1-2 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100