Registering a new language causes initialization issue #903
Answered
by
kaisalmen
vivekburman
asked this question in
Q&A
|
Hi, I've a use case which is failing github demo repo link. Usecase:
In file editor.ts I've added getUserConfig method to get the Userconfig and then added the "plaintext-log" language. Now when I load the page it shows the error. If I comment out registering the new language all works fine. But I do have a requirement to add that language at the beginning. How can I resolve this issue? |
Answered by
kaisalmen
Apr 14, 2025
Replies: 1 comment 15 replies
|
Hi @vivekburman why do you use create react app? Just use vite. See here for project generators: https://github.com/vitejs/vite/tree/main/packages/create-vite Do you use react strict mode and everything is done twice? That would explain the error message? |
15 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

@vivekburman for go syntax highlighting in classic mode you have to use:
import '@codingame/monaco-vscode-standalone-languages';and install the corresponding package before, of course.
In extended you have to define your language as you do in VSCode. We have both configs available for our Langium grammar language examples, see here:
Langium classic
Langium extended