You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Addressing the Issue with @volar/monaco and Implementing monaco-client in a Starter
The issue with @volar/monaco in Volar 2.x stems from its dependency management and potential compatibility issues. To address this and improve the reliability and maintainability of Monaco Editor integration in a starter project, we can directly include monaco-editor and implement a custom solution.
Project Setup (within your starter project)
Install monaco-editor: npm install monaco-editor
Create a MonacoProvider
Create a reusable component or utility function (e.g., MonacoProvider) to handle the initialization and management of the Monaco Editor instance. This promotes code reusability and better organization within your starter project.
Implement MonacoProvider
Import monaco-editor import * as monaco from 'monaco-editor/esm/vs/editor/editor.api';
Recent threads has shown there are issues with getting the @volar/monaco package to work from version 2.x of volar:
volarjs/volar.js#151
It would be a good idea to add the implementation of the monaco-client to the starter
The text was updated successfully, but these errors were encountered: