我开始使用React-Monaco-编辑器库,因为我想在WebReact应用程序中添加一个很酷的JSON编辑器。我遵循Github上的指示:React-Monaco-editor-doc但是,似乎我缺少在WebPack设置的文档中没有共享的东西。在使用文档中的WebPack设置指令后,导入库并添加了行:importMonacoEditorfrom'react-monaco-editor';classEditorextendsReact.Component{editorDidMount(editor,monaco){console.log('editorDidMount',editor);edi