mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
ddd6d66203
During JIT compilation of standalone components the compiler did not deduplicate declarations in the imports array, unlike the AOT compiler. This may result in runtime errors during directive matching, when the same component is found multiple times resulting in NG0300, for example: > NG0300: Multiple components match node with tagname mat-form-field: MatFormField and MatFormField. This commit fixes the issue by deduplicating imports in the JIT compiler. Relates to https://github.com/angular/angular/issues/46109#issuecomment-1160705031 Closes #46109 PR Close #46439