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

Importing with browserify?

pierznj opened this issue · comments

Looks like a great project, and exactly what I'm looking for. Unfortunately, when I try to import the component, my gulp/browserify build process fails with:

Error: Cannot find module 'monaco-editor' from '/<project path>/node_modules/@uiw/react-monacoeditor/lib/cjs'

I note that for webpack, a webpack plug in is required. Can it work with browserify?

@pierznj Not sure if it can be used in browserify.

Dependencies on monaco-editor.

do I need to install it?

I believe you're right. There's probably some dirty way to do it, but I'm going to try Ace instead. Thanks for replying.