Report a warning/error when multiple instance of `@angular/core` are bundled.
- Ngôn ngữ chính
- TypeScript
- Star
- 27k
- Fork
- 11.8k
- Merge trung bình
- 14 giờ 23 phút
- Pull request đã merge (30 ngày)
- 162
Mô tả
### Command
build
### Description
When the CLI bundles Angular apps it can happen that multiple instances of `@angular/core` are bundled.
This leads to a variety of errors at runtime that are difficult to diagnose for developers.
Currently on the FW repo we point users toward : angular/angular#35586
### Describe the solution you'd like
I'd be great if the CLI could throw a warning/error when it happens so users are aware even before runtime that there is an issue with their bundle and they should have a look at their dependency resolution !
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu với lệnh build của CLI và điều tra cách việc phân giải dependency cũng như các ứng dụng Angular được bundle được biểu diễn trong quá trình build. Xem angular/angular#35586 để biết chế độ lỗi đã được báo cáo khi có nhiều instance của @angular/core. Hoàn tất khi build báo warning hoặc error lúc nhiều instance được bundle, trước khi xảy ra lỗi runtime.
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, typescript
- Lĩnh vực
- build-system, cli
- Loại issue
- Tính năng
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 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