microsoft / monaco-editor

A browser based code editor
https://microsoft.github.io/monaco-editor/
MIT License
39.32k stars 3.52k forks source link

[Bug] TS2786: Editor cannot be used as a JSX component. #4568

Open Hoax017 opened 1 month ago

Hoax017 commented 1 month ago

Reproducible in vscode.dev or in VS Code Desktop?

Reproducible in the monaco editor playground?

Monaco Editor Playground Link

No response

Monaco Editor Playground Code

No response

Reproduction Steps

No response

Actual (Problematic) Behavior

Package.json

    "@monaco-editor/react": "^4.6.0",

import

import { Editor } from "@monaco-editor/react";

I can't use Editor in my TSX file.

Context: I am writing a Strapi plugin

Capture d’écran 2024-06-18 à 10 32 16

Expected Behavior

No response

Additional Context

No response

burnettk commented 1 month ago

you are looking for this repo: https://github.com/suren-atoyan/monaco-react