angular / angular/angularfire

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

Aberta
#3,649 2 comentários 0 reações 0 responsáveis Ver no GitHub
Linguagem predominante
TypeScript
Estrelas
7.8k
Forks
2.2k
Merge médio
22h 28min
PRs com merge (30d)
6

Descrição

## 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](https://github.com/user-attachments/assets/dc4a41fe-980c-4d92-8e4c-4cf4002510a9)

**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:

![Image](https://github.com/user-attachments/assets/8bdb33ef-8a3d-474a-8b9e-f20e83242f2c)

Guia de contribuição

Abrir o guia de contribuição

Direção de pesquisa

Reproduza o aviso em uma nova aplicação Angular 19 executando `ng add @angular/fire` e selecionando Authentication, Firestore e Realtime Database. Inspecione a instalação das dependências e a saída de configuração do schematic para identificar a origem do aviso de `punycode`; considera-se concluído quando a configuração termina sem esse aviso de depreciação.

Escrita pelo modelo de indexação a partir do texto da issue.

Avaliação

Stack de tecnologia
angular, firebase, node.js, typescript
Domínio
cli, tooling
Tipo de issue
Bug
Dificuldade
3/5
Tempo estimado
1-2 dias
Status de atividade
Estagnada
Clareza
Razoavelmente clara
Facilidade para iniciantes
35/100

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.