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

165
Views
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
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!