EditorSimpleWorker.loadForeignModule
See original GitHub issuesame problem at https://github.com/microsoft/monaco-editor/issues/1690#issue-532479802
my code:
this.editor = monaco.editor.create(document.getElementById("monaco"), { value: "", language: "javascript", theme:"vs-dark" });
the error meets :
Uncaught Error: Unexpected usage
Error: Unexpected usage at EditorSimpleWorker.loadForeignModule (editorSimpleWorker.js?ccf6:540) at eval (webWorker.js?af50:54) at eval (errors.js?fdcc:12)
when i delete the props language
is ok,why?
Issue Analytics
- State:
- Created 3 years ago
- Reactions:3
- Comments:8 (2 by maintainers)
Top Results From Across the Web
Unexpected usage loading foreign module for monaco editor ...
loadForeignModule (editorSimpleWorker.js?ccf6:540) at eval (webWorker.js?af50:54). Here is my vue.config.js file:
Read more >Unexpected usage at EditorSimpleWorker.loadForeignModule
vue+webpack/vue3+vite使用monaco editor时报错Unexpected usage at EditorSimpleWorker.loadForeignModule解决,react同理.
Read more >Accessing Monaco from Theia
I am just wondering whether it is possible at all too get at the underlying Monaco editor, specifically the typescript language so that...
Read more >冬久久的博客-程序员宅基地_unexpected usage at ...
vue+webpack/vue3+vite使用monaco editor时报错Unexpected usage at EditorSimpleWorker.loadForeignModule解决,react同理.
Read more >monaco-yaml - npm Package Health Analysis - Snyk
loadForeignModule (editorSimpleWorker.js) at webWorker.js. As a workaround, create a file named yaml.worker.js in your own project with the following ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
resolved
https://github.com/vitejs/vite/issues/1927 https://github.com/vitejs/vite/discussions/1791
I’m sorry it doesn’t seem to be working, but with so many requests that we get here and in the VS Code issue tracker, we just cannot provide the support we would like to offer.
That said, if you can track down your issue to a specific problem of the Monaco editor, we are more than welcoming a PR by the community!
I’ll close this issue, but if you have specific follow up questions, we’ll try to help as good as we can given the limited resources that we have.
Thanks for your understanding!