securingsincity/react-ace

mode "javascript" causes strange "A network error occurred." error

dep opened this issue · 0 comments

dep commented

Problem

Using "react-ace": "6.6.0" and "ace-builds": "1.12.3" with mode="javascript" causes a strange error, preventing our app from loading:

A network error occurred.

Sample code to reproduce your issue

import "ace-builds";
import AceEditor from "react-ace";
import "ace-builds/src-noconflict/mode-javascript";

...

<AceEditor mode="javascript" />

Workaround

Paradoxically, switching the mode to jsx resolves the issue.