uiwjs / react-monacoeditor

Monaco Editor component for React.

Home Page:https://uiwjs.github.io/react-monacoeditor/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Webpack compilation warning in 0.29.0 with DOMPurify

jaywcjlove opened this issue · comments

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').

microsoft/monaco-editor#2691