DeprecationWarning: The 'punycode' module is deprecated when running ng add @angular/fire
- 主要語言
- TypeScript
- 星號
- 7.8k
- 分支
- 2.2k
- 平均合併
- 22 小時 28 分鐘
- 30 天內合併 PR
- 6
描述
## 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:

貢獻指南
研究方向
透過執行 `ng add @angular/fire` 並選取 Authentication、Firestore 和 Realtime Database,在新的 Angular 19 應用程式中重現該警告。檢查 schematic 的相依性安裝與設定輸出,以找出 `punycode` 警告的來源;當設定完成且不再出現該棄用警告時即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- angular, firebase, node.js, typescript
- 領域
- cli, tooling
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100