我目前正在尝试使用这个包设置 Monaco 编辑器:https://github.com/egoist/vue-monaco
它的效果非常好,但是出现了一个错误信息:
Could not create web worker(s). Falling back to loading web worker code in main thread, which might cause UI freezes. Please see https://github.com/Microsoft/monaco-editor#faq
You must define a function MonacoEnvironment.getWorkerUrl or MonacoEnvironment.getWorker
我理解你需要启动一个worker,但是我似乎无法正常运行它。
我一直在使用Laravel和Laravel Mix来使所有工作正常运转,然而似乎没有关于如何设置worker的文档。
任何帮助都将不胜感激。