uiwjs / react-monacoeditor

Monaco Editor component for React.
https://uiwjs.github.io/react-monacoeditor/
MIT License
296 stars 26 forks source link

Webpack compilation warning in 0.29.0 with DOMPurify #109

Closed jaywcjlove closed 3 years ago

jaywcjlove commented 3 years ago
monaco-editor@0.29.0
monaco-editor-webpack-plugin@4.2.0 
Creating an optimized production build...
Failed to compile.

Cannot find module 'vs/basic-languages/flow9/flow9.contribution'
Require stack:
- /home/runner/work/react-monacoeditor/react-monacoeditor/node_modules/monaco-editor-webpack-plugin/out/index.js
- /home/runner/work/react-monacoeditor/react-monacoeditor/.kktrc.ts
- /home/runner/work/react-monacoeditor/react-monacoeditor/node_modules/kkt/lib/utils/loaderConf.js
- /home/runner/work/react-monacoeditor/react-monacoeditor/node_modules/kkt/lib/overrides/config.js
- /home/runner/work/react-monacoeditor/react-monacoeditor/node_modules/kkt/lib/scripts/build.js
- /home/runner/work/react-monacoeditor/react-monacoeditor/node_modules/kkt/lib/bin/kkt.js
Creating an optimized production build...
Failed to compile.

./node_modules/monaco-editor/esm/vs/base/browser/markdownRenderer.js
Attempted import error: 'addHook' is not exported from './dompurify/dompurify.js' (imported as 'dompurify').

https://github.com/microsoft/monaco-editor/issues/2691