monaco-editor icon indicating copy to clipboard operation
monaco-editor copied to clipboard

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

Open Hoax017 opened this issue 1 year ago • 1 comments

Reproducible in vscode.dev or in VS Code Desktop?

  • [X] Not reproducible in vscode.dev or 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

Hoax017 avatar Jun 18 '24 08:06 Hoax017

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

burnettk avatar Jun 18 '24 21:06 burnettk