There was an error in, inject NzMessageService content after ng-zorro: was published.

ng build-- prod

Tip when publishing content access:

prompt ERROR Error: Uncaught (in promise): TypeError: Cannot read property "resolveComponentFactory" of undefinedzz

Lookup error discovery is an error that occurred when NzMessageService was in injector.

part of the code

 constructor(protected injector: Injector,
    public componentConfig: BaseComponentConfig,
    protected systemFormControl: ArSystemFormControl = null) {
    // 
    this.httpService = this.injector.get(HttpService);
    this.message = this.injector.get(NzMessageService);
    this.fb = this.injector.get(FormBuilder);
    this.nzModalService = this.injector.get(NzModalService);
    console.log(this.nzModalService);
    this.route = this.injector.get(ActivatedRoute);
    this.router = this.injector.get(Router);
    this.nghttp = this.injector.get(HttpClient);
    this.validateForm = this.fb.group({});
    this.location = this.injector.get(Location);

has anyone encountered the same error? I tried to find a solution, but I couldn"t find it.

Apr.10,2021
Have you solved the problem of

? now I have encountered the same


I have encountered the same

.
Menu