angular / angular/angular-cli

Report a warning/error when multiple instance of `@angular/core` are bundled.

オープン
#26,774 コメント 0 件 リアクション 2 件 担当者 0 名 GitHub で見る
area: @angular-devkit/build-angular feature feature: under consideration
主要言語
TypeScript
スター
27k
フォーク
11.8k
平均マージ
14時間 23分
マージ済み PR(30日)
162

説明

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

コントリビューションガイド

コントリビューションガイドを開く

調査の方向性

CLI の build コマンドから始め、build 中に依存関係の解決とバンドルされた Angular アプリケーションがどのように表現されるかを調査してください。複数の @angular/core インスタンスに関して報告されている障害モードについては、angular/angular#35586 を確認してください。複数のインスタンスがバンドルされたときに、ランタイム障害が発生する前に build が警告またはエラーを報告すれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
angular, typescript
領域
build-system, cli
issue の種類
機能追加
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。