react-ace icon indicating copy to clipboard operation
react-ace copied to clipboard

Error: Cannot find module '../lib/oop' from '.../node_modules/ace-builds/src-noconflict'

Open pierznj opened this issue 3 years ago • 1 comments

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 '/splunk-2steps-web/node_modules/ace-builds/src-noconflict'.

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.

pierznj avatar Apr 20 '21 23:04 pierznj

I am also getting the same error with the default create-react-app configuration.

hbarua05 avatar Sep 18 '21 10:09 hbarua05