react-ace
react-ace copied to clipboard
Error: Cannot find module '../lib/oop' from '.../node_modules/ace-builds/src-noconflict'
Problem
Per the documentation I have the following imports:
import ReactAce from 'react-ace';
import 'ace-builds/src-noconflict/mode-javascript';
import 'ace-builds/src-noconflict/theme-github';
I have followed the example code to implement the editor, but during my gulp build process I get this:
Error: Cannot find module '../lib/oop' from '
I can see indeed that mode-javascript.js
in ace-builds does require a file ../libs/oop.js
, which is not present in the repo, though it is part of the ace repo.
My gulp process uses browserify.
I am also getting the same error with the default create-react-app configuration.