Repository navigation
getWorker function doesn't work
#3703
Unanswered
Egor Dubchenko (dubchenko)
asked this question in
Q&A
Replies: 3 comments
|
What is the use of self.MonacoEnvironment? Is it required under or not? |
0 replies
|
Any progress on this question? |
0 replies
|
I ran into this when we switch from: import * as monaco from "monaco-editor";to import * as monaco from "monaco-editor/esm/vs/editor/editor.api";Adding some more imports fixed it: // for JSON
import "monaco-editor/esm/vs/language/json/monaco.contribution";
// for HTML
import "monaco-editor/esm/vs/basic-languages/html/html.contribution";We don't use other language bundles but there are similar files in the I did find |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Reproducible in vscode.dev or in VS Code Desktop?
Reproducible in the monaco editor playground?
Monaco Editor Playground Code
No response
Actual Behavior
When I import Monaco from
.../editor.api.jsgetWorkerfunction doesn't call. But if import Monaco frommonaco-editoreverything works OK. I'm using Vite. How to fix this?Expected Behavior
No response
Additional Context
Example:
All reactions