Skip to content

Commit 2f23d12

Browse files
authored
Update README.md: overrides hint for monaco-editor/react
1 parent 12bcdf9 commit 2f23d12

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,14 @@ import { loader } from "@monaco-editor/react";
300300
loader.config({ monaco });
301301
```
302302

303+
Because `@codingame/monaco-vscode-api` relies on it own build of `monaco-editor` it may be required to enforce the `monaco-editor` version via `overrides` (npm/pnpm) or `resolutions` (yarn):
304+
305+
```json
306+
"overrides": {
307+
"monaco-editor": "npm:@codingame/monaco-vscode-editor-api@~11.1.2"
308+
}
309+
```
310+
303311
### pnpm
304312

305313
If you use pnpm, you have to add `vscode` / `@codingame/monaco-vscode-api` as direct dependency (you find the [compatibility table here](https://github.com/TypeFox/monaco-languageclient/blob/main/docs/versions-and-history.md#monaco-editor--codingamemonaco-vscode-api-compatibility-table), otherwise the installation will fail.

0 commit comments

Comments
 (0)