microsoft / microsoft/monaco-editor

Monaco Editor JSON Language Service Cannot Be Loaded From Source

Open
#3,990 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug website
Dominant language
JavaScript
Stars
46.8k
Forks
4.1k
Avg merge
17h 58m
Merged PRs (30d)
1

Description

This is a commonjs import, that doesn't work when loaded as is:
https://github.com/microsoft/monaco-editor/blob/584584e65bc6fb1c173c35415e81e365504829bd/src/language/json/jsonWorker.ts#L6

It works in production because of bundling.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start at src/language/json/jsonWorker.ts line 6 and inspect how the JSON language service is imported when the source is loaded without bundling. Reproduce the source-loading failure, then verify that the JSON language service loads directly while production bundling continues to work.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.