securingsincity / react-ace

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

How to set worker path? #1799

Open Capricair opened 1 year ago

Capricair commented 1 year ago

The console show that worker-json.js cannot be found, I search document it says that worker path needs to be set

grapho commented 1 month ago

+1 for this!

In a React app with "ace-builds": "^1.4.12" and "react-ace": "^9.2.0"

Issue is the same with worker-json.js and worker-yaml.js

I can see a worker try to launch and the path to these files should be within static/js but the files are not there

Screenshot 2024-09-18 at 5 26 42 PM

I also tried doing:

setOptions={{
  useWorker: false,
}}

same result

It seems related to this error which happens concurrently:

Screenshot 2024-09-18 at 5 36 55 PM