Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

155
Vistas
How to fix undefined (setting 'parentContainer') when adding js bundle using script tag in JavaScript?

I am trying to add stackoverflow text editor into my html file via script tag using documentation guide from https://stackoverflow.design/product/components/editor/#import-via-script-tag but I am getting error:

Error: Uncaught TypeError: Cannot set properties of undefined (setting 'parentContainer') at Ic.setupPluginContainer (app.bundle.js:87:17414)

Code:

<div id="editor-container"></div>
    
   
    <script src="https://unpkg.com/@highlightjs/cdn-assets@11.5.1/highlight.min.js"></script>
    
    <!-- Include the bundle -->
    <script src="./node_modules/@stackoverflow/stacks-editor/dist/app.bundle.js"></script>
    
    <!-- Initialize the editor -->
    <script>
      new window.stacksEditor.StacksEditor(
        document.querySelector("#editor-container"),
        "*Your* **markdown** here",
        {}
      );

Here is how my folder structure look like: enter image description here

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda