microsoft / microsoft/monaco-editor
[Bug] cannot access top level languages via `monaco-editor/esm/vs/editor/editor.api.js`
Open
@hediet is already working on this.
Since Dec 1, 2025.
bug
- Dominant language
- JavaScript
- Stars
- 46.8k
- Forks
- 4.1k
- Avg merge
- 17h 58m
- Merged PRs (30d)
- 1
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
Monaco Editor Playground Code
Reproduction Steps
I'm using the minimal entry monaco-editor/esm/vs/editor/editor.api.js
import * as monaco from "monaco-editor/esm/vs/editor/editor.api.js";
monaco.languages.typescript.typescriptDefaults.setDiagnosticsOptions(
diagnosticsOptions,
);
but meet the following error in v0.55.1:
Property 'typescriptDefaults' does not exist on type '{ deprecated: true; }'.ts(2339)
Then I tried the top level typescript but it seems not exported from monaco-editor/esm/vs/editor/editor.api.js:
Module '"monaco-editor/esm/vs/editor/editor.api.js"' has no exported member 'typescript'.ts(2305)
Actual (Problematic) Behavior
No response
Expected Behavior
No response
Additional Context
No response
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.
Assessment
This issue has not been assessed yet.