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

146
Views
svelte-codejar "ctx[1] is not a constructor"

I am using svelte and svelte-codejar with prismjs and I am getting this error Uncaught TypeError: ctx[1] is not a constructor Here's my code

<script context="module">
    import Prism from "prismjs"
      const highlight = (code, syntax) => Prism.highlight(code, Prism.languages[syntax], syntax);
    </script>
    
    <script>
      import "prismjs/themes/prism-tomorrow.css";
      import {getContext} from "svelte";
      import {DEFAULT_CODE_SAMPLE, DEFAULT_CODE_SYNTAX} from "./_sample";
      const store = getContext("CodeJar");
      const options = getContext("options");
      const CodeJar = $store;
      
    </script> 

any help would be great I also get Uncaught TypeError: $options is undefined if this line is added $: ({withLineNumbers = false} = $options);

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!