angular / angular/angularfire

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

Đang mở
#3,649 2 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
TypeScript
Star
7.8k
Fork
2.2k
Merge trung bình
22 giờ 28 phút
Pull request đã merge (30 ngày)
6

Mô tả

## 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)

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

Tái hiện cảnh báo trong một ứng dụng Angular 19 mới bằng cách chạy `ng add @angular/fire` và chọn Authentication, Firestore cùng Realtime Database. Kiểm tra quá trình cài đặt dependency và đầu ra cấu hình của schematic để xác định nguồn gốc của cảnh báo `punycode`; hoàn tất khi quá trình thiết lập kết thúc mà không có cảnh báo deprecation đó.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
angular, firebase, node.js, typescript
Lĩnh vực
cli, tooling
Loại issue
Lỗi
Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Khá rõ ràng
Mức phù hợp với người mới
35/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.