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);