Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] globalDefine is not a function #4694

Open
1 of 2 tasks
create3000 opened this issue Sep 24, 2024 · 2 comments
Open
1 of 2 tasks

[Bug] globalDefine is not a function #4694

create3000 opened this issue Sep 24, 2024 · 2 comments

Comments

@create3000
Copy link

create3000 commented Sep 24, 2024

Reproducible in vscode.dev or in VS Code Desktop?

  • Not reproducible in vscode.dev or VS Code Desktop

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

@a10036gt
Copy link

a10036gt commented Oct 6, 2024

Me too.

@nuclearsecrecy
Copy link

Same issue. Had to roll back to 0.50.0 to make it work at all in Node/Electron.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants