We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Describe the bug I got this error message after using version 4.7.0 with React 19 without setting "skipLibCheck" to true in "tsconfig.json":
../node_modules/@monaco-editor/react/dist/index.d.ts(106,295): error TS2503: Cannot find namespace 'JSX'.
Expected behavior There is no error if "skipLibCheck" is set to false.
The text was updated successfully, but these errors were encountered:
I'm getting an error which may be related (React 19 & monaco editor v4.7.0):
'Editor' cannot be used as a JSX component. Its type 'MemoExoticComponent<({ defaultValue, defaultLanguage, defaultPath, value, language, path, theme, line, loading, options, overrideServices, saveViewState, keepCurrentModel, width, height, className, wrapperProps, beforeMount, onMount, onChange, onValidate, }: EditorProps) => Element>' is not a valid JSX element type. Type 'MemoExoticComponent<({ defaultValue, defaultLanguage, defaultPath, value, language, path, theme, line, loading, options, overrideServices, saveViewState, keepCurrentModel, width, height, className, wrapperProps, beforeMount, onMount, onChange, onValidate, }: EditorProps) => Element>' is not assignable to type '(props: any) => ReactNode | Promise<ReactNode>'. Types of parameters 'props' and 'props' are incompatible. Type 'any' is not assignable to type 'never'.ts(2786)
Sorry, something went wrong.
No branches or pull requests
Describe the bug
I got this error message after using version 4.7.0 with React 19 without setting "skipLibCheck" to true in "tsconfig.json":
../node_modules/@monaco-editor/react/dist/index.d.ts(106,295): error TS2503: Cannot find namespace 'JSX'.
Expected behavior
There is no error if "skipLibCheck" is set to false.
The text was updated successfully, but these errors were encountered: