microsoft / microsoft/monaco-editor

[Bug] cannot access top level languages via `monaco-editor/esm/vs/editor/editor.api.js`

Open
#5,133 2 comments 5 reactions 1 assignee View on GitHub

@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?
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

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.