DeprecationWarning: The 'punycode' module is deprecated when running ng add @angular/fire
- Lingua principale
- TypeScript
- Stelle
- 7.8k
- Fork
- 2.2k
- Merge medio
- 22h 28m
- PR unite (30g)
- 6
Descrizione
## 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:

Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Riproduci l'avviso in una nuova applicazione Angular 19 eseguendo `ng add @angular/fire` e selezionando Authentication, Firestore e Realtime Database. Ispeziona l'installazione delle dipendenze e l'output di configurazione dello schematic per identificare l'origine dell'avviso `punycode`; il lavoro è completato quando il setup termina senza questo avviso di deprecazione.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- angular, firebase, node.js, typescript
- Ambito
- cli, tooling
- Tipo di issue
- Bug
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Stato di attività
- Ferma
- Chiarezza
- Abbastanza chiara
- Idoneità per principianti
- 35/100