mirror of
https://github.com/angular/angular.git
synced 2026-11-23 07:05:14 -05:00
Please note that this change addresses a **real** production issue
observed, rather than a speculative issue identified through
AI-assisted code analysis.
There is no open issue because most people never put two apps with the
same APP_ID on one page.
Prior to this commit, if you bootstrap 2 apps simultaneously, i.e. a
real app + a widget coming from a CDN (the code we don't have control
of, but we only configure the app name in their settings):
```text
TypeError: Cannot read properties of undefined (reading 'c')
```
With this fix, the code no longer fails with a raw type error. It warns
with code NG0511 instead. It does not crash explicitly, because that
might break whenStable().
(cherry picked from commit 3a0835b332)