error TS2554: Expected 2 arguments, but got 1 with @ViewChild

After migration to Angular 8 you should declare manually if it’s static or not

@ViewChild(QuilldEditorComponent, {static: true}) quillEditorComponentInstance;

If you have further questions ask them or for more details please read this issue
https://github.com/angular/angular-cli/issues/14553
or take a look at offical documentation
https://angular.io/guide/static-query-migration

// query results available in ngOnInit
@ViewChild('foo', {static: true}) foo: ElementRef; 

OR

// query results available in ngAfterViewInit
@ViewChild('foo', {static: false}) foo: ElementRef;

Leave a Comment

tech