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

Syntax highlighting issue with `MonacoEditorReactComp` and CRA with Webpack

Open metehansenol opened this issue 1 year ago • 0 comments

I created an empty react app with create-react-app, installed and imported necessary packages;

import { MonacoEditorReactComp } from '@typefox/monaco-editor-react';
import '@codingame/monaco-vscode-json-default-extension';

<MonacoEditorReactComp
  userConfig={{
    wrapperConfig: {
      editorAppConfig: {
        $type: 'extended',
        languageId: 'json',
        code: '{ "hello": "world" }',
        useDiffEditor: false,
        codeUri: `/hello.json`,
      },
    },
  }}
  style={{ height: '100%' }}
/>

In documentation says that monaco-editor-webpack-plugin can't be used anymore.

What's wrong with syntax highlighting. Btw. language server integration working fine only issue is syntax highlighting.

Thanks.

metehansenol avatar May 09 '24 21:05 metehansenol