mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
e592cc7c1c
This commit improves the reported error when importing e.g. `RouterModule.forRoot()` from within `Component.imports`. Such import is not supported, as standalone components can only refer to other standalone entities or NgModules in their `imports` array; `ModuleWithProviders` are not supported as `Component.imports` is meant to be used for the compilation scope of the component, _not_ for configuring DI. Closes #46003 PR Close #46009