[Bug] Monaco Playground w/ Local Dev Environment Does Not Work
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 15/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Tech stack
- docker, javascript
- Domain
- build-system, developer-experience, devtools
Research direction
Start with the debugging and developing language support section of CONTRIBUTING.md and reproduce the build using the reported Windows, WSL, and Docker setups. Then inspect the failure path in monaco-editor-core/dev/vs/loader.js and the playground loading behavior. Done means the local project builds and the playground opens instead of loading indefinitely.
Written by the indexing model from the issue text.
Description
Reproducible in vscode.dev or in VS Code Desktop?
- 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
- Follow the instructions at https://github.com/microsoft/monaco-editor/blob/main/CONTRIBUTING.md#debugging--developing-language-support
- Start project
- Get build errors
I have tried every possible combination of environments:
- Using the workspace file on Windows and WSL
- NOT using the workspace file on Windows and WSL
- Using the Docker container
No matter what I do I can't get it to work.
Actual (Problematic) Behavior
I get the following build error:
Could not read source map for file://///home/runner/work/monaco-editor/monaco-editor/website/node_modules/%40react-aria/ssr/dist/module.js: UNC host 'home' access is not allowed
Could not read source map for file://///home/runner/work/monaco-editor/monaco-editor/website/node_modules/messagepack/dist/messagepack.es.js: UNC host 'home' access is not allowed
Could not read source map for file://///home/runner/work/monaco-editor/monaco-editor/website/node_modules/mobx-react/dist/mobxreact.esm.js: UNC host 'home' access is not allowed
Loading "monaco-editor-core" failed
loader.js:249
Error: [object Event]
at Object.ensureError (C:\Users\Jackson\monaco-editor\node_modules\monaco-editor-core\dev\vs\loader.js:234:18)
at ModuleManager._createLoadError (C:\Users\Jackson\monaco-editor\node_modules\monaco-editor-core\dev\vs\loader.js:1461:26)
at ModuleManager._onLoadError (C:\Users\Jackson\monaco-editor\node_modules\monaco-editor-core\dev\vs\loader.js:1472:23)
at loadNextPath (C:\Users\Jackson\monaco-editor\node_modules\monaco-editor-core\dev\vs\loader.js:1615:11)
at Object.errorback (C:\Users\Jackson\monaco-editor\node_modules\monaco-editor-core\dev\vs\loader.js:1635:7)
at OnlyOnceScriptLoader.triggerErrorback (C:\Users\Jackson\monaco-editor\node_modules\monaco-editor-core\dev\vs\loader.js:601:24)
at C:\Users\Jackson\monaco-editor\node_modules\monaco-editor-core\dev\vs\loader.js:588:107
at HTMLScriptElement.errorEventListener (https://microsoft.github.io/monaco-editor/node_modules/monaco-editor-core/dev/vs/loader.js:621:5) {phase: 'loading', moduleId: 'monaco-editor-core', neededBy: Array(1), stack: 'Error: [object Event]
at Object.ensureErr…es/monaco-editor-core/dev/vs/loader.js:621:5)', message: '[object Event]'}
loader.js:250
Here are the modules that depend on it:
loader.js:251
(1) ['vs/language/json/monaco.contribution']
The playground does not work and loads forever:
Expected Behavior
The playground should open as expected.
Additional Context
This problem is nearly identical to https://github.com/microsoft/vscode/issues/175009
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/monaco-editor
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
microsoft/monaco-editor#5314 · 2 comments · 4 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
microsoft/monaco-editor#5248 · 8 comments · 57 reactions ·
-
Difficulty 1/5 Under an hour Newbie friendliness 65/100
microsoft/monaco-editor#5193 ·
-
[Bug] colorizeElement method doesn't color the whole text if domNode has more than one #text child Open
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
microsoft/monaco-editor#4571 ·
-
bug help wanted integration
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
microsoft/monaco-editor#4045 · 8 comments · 11 reactions ·
All issues in microsoft/monaco-editor
Similar issues
-
code-quality refactoring
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
github/gh-aw-firewall#8816 ·
-
integration:quickjs org:external priority:backlog topic:code-interpreter topic:middleware type:feature
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
langchain-ai/deepagents#6450 ·
-
optimization optimization:agents-md-curator
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
githubnext/gh-aw-cao#13143 ·
-
status: needs triage
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100