Loïc Mangeonjean
Loïc Mangeonjean
@kaisalmen As always, the issue is multiple package version installed `[email protected]` uses `[email protected]` and you're using `@codingame/[email protected]`, instead of the 6.0.3
Did you check for multiple package version installed?
> i am also getting the same error, i have spent more than 5 hours trying to setup LSP into Monaco editor. Why there isn't any guide, I have tried...
You have both `vscode@npm:@codingame/[email protected]` and `vscode@npm:@codingame/[email protected]`, because of `[email protected]`
There is a [compatibility table](https://github.com/TypeFox/monaco-languageclient/blob/main/docs/versions-and-history.md#monaco-editor--codingamemonaco-vscode-api-compatibility-table) Also you probably shouldn't use the next version since there is a more recent stable version
You're confusing ` @monaco-editor/react` with `monaco-editor-react` which are 2 different libraries
I think it's `@typefox/monaco-editor-react` you're looking for, and you've already installed it along with the other one
btw @kaisalmen why is one namespaced and not the other?
A simple check to the pnpm-lock.yaml shows that you have both 8.0.4 and 9.0.3 versions of monaco-vscode-api
by installing a dependency A directly, and having another dependency B that requires the dependency A with another version