securingsincity / react-ace

React Ace Component
http://securingsincity.github.io/react-ace/
MIT License
4.02k stars 603 forks source link

指定mode时出现network报错 #1835

Open resetsix opened 1 year ago

resetsix commented 1 year ago

"react-ace": "^10.1.0", "ace-builds": "^1.23.4"。将后端返回的JSON数据转换为yaml数据显示时,启动提示network报错。

图片 图片 图片

经过测试发现:一导入 import "ace-builds/src-noconflict/mode-xxx";如mode-yaml、mode-javascript、mode-json,然后指定相同的mode一启动就会报错