microsoft / microsoft/monaco-editor
Monaco Editor JSON Language Service Cannot Be Loaded From Source
Open
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
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.
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