Replies: 3 comments
-
What is the use of self.MonacoEnvironment? Is it required under or not? |
Beta Was this translation helpful? Give feedback.
0 replies
-
Any progress on this question? |
Beta Was this translation helpful? Give feedback.
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 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
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.js
getWorker
function doesn't call. But if import Monaco frommonaco-editor
everything works OK. I'm using Vite. How to fix this?Expected Behavior
No response
Additional Context
Example:
Beta Was this translation helpful? Give feedback.
All reactions