import React from 'react'; import ReactDOM from 'react-dom/client'; import { MonacoEditorReactComp } from '@typefox/monaco-editor-react'; import { createLangiumGlobalConfig } from './config/wrapperStatemachineConfig.js'; import { buildWorkerDefinition } from 'monaco-editor-workers'; import { loadStatemachinWorkerRegular } from './wrapperStatemachine.js'; buildWorkerDefinition('../../../../node_modules/monaco-editor-workers/dist/workers', import.meta.url, false); const startEditor = async () => { const langiumGlobalConfig = await createLangiumGlobalConfig(loadStatemachinWorkerRegular()); const comp = ; const root = ReactDOM.createRoot(document.getElementById('root')!); root.render(comp); }; try { startEditor(); } catch (e) { console.error(e); }