uiwjs / react-monacoeditor

Monaco Editor component for React.
https://uiwjs.github.io/react-monacoeditor/
MIT License
296 stars 26 forks source link

EditorSimpleWorker.loadForeignModule error #120

Open ShafSpecs opened 2 years ago

ShafSpecs commented 2 years ago
errors.js:8 Uncaught Error: Unexpected usage

Error: Unexpected usage
    at EditorSimpleWorker.loadForeignModule (editorSimpleWorker.js:450)
    at webWorker.js:38
    at errors.js:8errors.js:8 Uncaught Error: Unexpected usage

Error: Unexpected usage
    at EditorSimpleWorker.loadForeignModule (editorSimpleWorker.js:450)
    at webWorker.js:38
    at errors.js:8

I get this error when initializing the monaco editor, I am using react with vite bundler. Anytime I type, the cursor doesn't move and I get this error, when I click spacebar, the top line moves down and I am stuck on the first line. I tried using the sandbox to check the error but same thing, I got error 502 when opening it. Is it a bug on my end or it is with the pacckage?