Open arunkumar413 opened 1 year ago
If you add the import of your theme, this error goes away:
import "ace-builds/src-min-noconflict/mode-html";
I'm using rollup to build my react app rather than webpack.
I also did the ace.config.set('basePath', 'path') so that it loaded the search box code.
This can be done by doing this:
import config from "ace-builds/src-min-noconflict/ace";
const [initialised, setInitialised] = useState<boolean>(false);
useEffect(() => {
if (!initialised) {
const location = window.location;
const url = location.protocol + "//" + location.hostname + ":" + location.port + "/ace/";
config.config.set("basePath", url);
setInitialised(true);
}
}, [])
In Express add this code:
app.use('/ace', express.static('node_modules/ace-builds/src-min-noconflict/'))
Enable dynamic loading of modes
I'm seeing these error messages in the console
Sample code to reproduce your issue
References
Progress on: #