monaco-editor
monaco-editor copied to clipboard
[Bug] globalDefine is not a function
Reproducible in vscode.dev or in VS Code Desktop?
- [x] Not reproducible in vscode.dev or VS Code Desktop
Reproducible in the monaco editor playground?
- [ ] Not reproducible in the monaco editor playground
Monaco Editor Playground Link
No response
Monaco Editor Playground Code
No response
Reproduction Steps
As of version 0.51.0 I get this error, and therefor cannot update.
I only get this error when I use Monaco in an Electron environment and with Node require. The web version works fine.
Actual (Problematic) Behavior
Uncaught TypeError: globalDefine is not a function
at Object.<anonymous> (editor.main.js:5:395)
at r._createAndEvalScript (/Users/holger/Desktop/X_ITE/sunrize/node_modules/monaco-editor/min/vs/loader.js:7:2506)
at /Users/holger/Desktop/X_ITE/sunrize/node_modules/monaco-editor/min/vs/loader.js:7:2147
at FSReqCallback.readFileAfterClose [as oncomplete] (node:internal/fs/read/context:68:3)
Expected Behavior
No response
Additional Context
No response
Me too.
Same issue. Had to roll back to 0.50.0 to make it work at all in Node/Electron.
same error
same