Skip to content

How to use @typefox/monaco-editor-react with vite #665

Answered by kaisalmen
Yokozuna59 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Yokozuna59 that is strange because we use this combination for the examples here and I quite recently fixed multiple issues with vite/rollup production builds. We don't have a minimum functional example here, but only examples that make use of a language server:
https://github.com/TypeFox/monaco-languageclient/tree/main/packages/examples/src/python/client/reactPython.tsx
https://github.com/TypeFox/monaco-languageclient/tree/main/packages/examples/src/langium/statemachine/main-react.tsx

A minimum configuration can be something like this:

const htmlElement = document.getElementById('monaco-editor-root');
const comp = <MonacoEditorReactComp
userConfig={{
	wrapperConfig: {
		editorAppConfig

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@kaisalmen
Comment options

@CGNonofr
Comment options

@Yokozuna59
Comment options

@CGNonofr
Comment options

@Yokozuna59
Comment options

Answer selected by Yokozuna59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants