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

466
Views
Shadow root no se puede crear en un host que ya alberga un árbol de sombra

Estoy renderizando una aplicación de reacción (Widget) dentro de Shadow DOM. Así que miré la identificación del div donde el widget se está cargando actualmente.

Vea la presentación de pantalla a continuación. ingrese la descripción de la imagen aquí

Con esta información, quiero crear un host Shadow como este.

 const host = document.querySelector('#widget-_hw'); const shadow = host.attachShadow({ mode: 'open' }); const renderIn = document.createElement('div');

Pero estoy recibiendo este error.

 Failed to execute 'attachShadow' on 'Element': Shadow root cannot be created on a host which already hosts a shadow tree
about 4 years ago · Juan Pablo Isaza
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!