-
-
Notifications
You must be signed in to change notification settings - Fork 287
YAML validation for Monaco Editor #228
New issue
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
Comments
this can be helpful. I'll try to find some time to make a working example |
It's hard to understand something in this example and how to integrate with monaco-react. Seems like all the code should be placed in public/index.html and we don't need monaco-react at all. |
An update on this would be greatly appreciated |
@suren-atoyan could you please provide an update on this. |
@suren-atoyan Did you manage to get some time to look into it? :) |
@Nivl @Chethannp @efreila guys sorry, but this package isn't compatible with this yaml-monaco implmenetation. To avoid using webpack configuration in this package we download monaco sources from CDN. The mentioned yaml-monaco implementation heavily depends on the ESM version of monaco, which requires a specific webpack configuration |
@suren-atoyan Is there a workaround that let us use https://github.com/remcohaszing/monaco-yaml with https://github.com/suren-atoyan/monaco-react ? |
is there any example with monaco-yaml? |
this might make it possible to use |
@suren-atoyan Cheers for the suggestion. I did manage to get it working using the webpack config from https://github.com/remcohaszing/monaco-yaml
|
Throws:
In a Next.js app :( |
I was able to configure @monaco-editor/react to work with monaco-yaml: yaml.worker.ts
setupMonaco.ts
|
For YAML seems like we have indentation and code highlighting, but unfortunately, we can't validate the code (indentation format or naming, duplications of the fields).
I found a library (https://github.com/pengx17/monaco-yaml) that can maybe help, but I have issues to integrate with create-react-app.
I also tried this solution (#68 (comment)) but unfortunately nothing works for create-react-app application.
Maybe someone integrated YAML validations and can share some knowledge.
The text was updated successfully, but these errors were encountered: