Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

188
Views
El argumento de tipo 'NgElementConstructor<desconocido>' no se puede asignar al parámetro de tipo 'CustomElementConstructor'

Recibo una advertencia extraña en VSCode (1.44.0-insider) con Angular9 al crear elementos angulares:

 export class AppModule { constructor(private injector: Injector) { const helloElement = createCustomElement(HelloComponent, {injector}); customElements.define('my-hello', helloElement); } ngDoBootstrap() {} }

el tipo de helloElement no se acepta con un mensaje de error de mecanografiado:

El argumento de tipo 'NgElementConstructor' no se puede asignar al parámetro de tipo 'CustomElementConstructor'

over 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Parece que se solucionará con la próxima versión: https://github.com/angular/angular/pull/35864

Ya puede probarlo para su proyecto actualizando a la próxima versión (9.1.0-next.4).

 ng update @angular/core --next
over 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!