fix(core): improve error message when component factory cannot be found (#13541)
Closes #12678
This commit is contained in:
parent
9b8488f007
commit
383adc9ad9
|
@ -19,7 +19,8 @@ import {ComponentFactory} from './component_factory';
|
|||
*/
|
||||
export class NoComponentFactoryError extends BaseError {
|
||||
constructor(public component: Function) {
|
||||
super(`No component factory found for ${stringify(component)}`);
|
||||
super(
|
||||
`No component factory found for ${stringify(component)}. Did you add it to @NgModule.entryComponents?`);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue