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

MISC: Update monaco-editor #1769

Conversation

catloversg
Copy link
Contributor

Although I don't mark this PR as a bugfix one, it still fixes the "Unexpected usage: loadForeignModule" error. This error is caused by monaco-editor when it cannot load the language worker. It's hard to know why the language worker cannot be loaded. It may be caused by:

  • Network error.
  • Browser's extensions.
  • Other software blocks access to relevant JS files (e.g., antivirus).
  • Corrupted installation (Steam app).

How to reproduce it:

  • Build the app without this PR's change.
  • Delete ts.worker.js.
  • Run nano test.js.

This problem is gone when we update monaco-editor to the latest version.

Closes #1408.

@d0sboots d0sboots merged commit 48b25d2 into bitburner-official:dev Nov 12, 2024
5 checks passed
@catloversg catloversg deleted the pull-request/misc/update-monaco-editor branch November 12, 2024 15:22
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

Successfully merging this pull request may close these issues.

Uncaught Promise in Script Editor
2 participants