Argument of type 'NgElementConstructor<unknown>' is not assignable to parameter of type 'CustomElementConstructor'
问题 I'm getting a strange warning in VSCode( 1.44.0-insider ) with Angular9 in creating Angular Elements: export class AppModule { constructor(private injector: Injector) { const helloElement = createCustomElement(HelloComponent, {injector}); customElements.define('my-hello', helloElement); } ngDoBootstrap() {} } type of helloElement is not accepted with an error message from typescript: Argument of type 'NgElementConstructor' is not assignable to parameter of type 'CustomElementConstructor' 回答1: