New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom mode with its own worker #128
Comments
Now I am able to load the WorkerClient.. replaced var WorkerClient = ace.acequire('ace/worker/worker_client').WorkerClient; but have some issues loading worker file Could not load worker TypeError: Cannot read property 'id' of undefined |
Do I need to convert the worker to module.exports.id = 'ace/mode/json_worker';
module.exports.src = '..worker code' to above style? If so, Is there a sample for it? |
@spabbineedi hey did you ever figured this out? |
@spabbineedi @rodobodolfo |
I couldn't unfortunately. |
@rodobodolfo new UIWorkerClient(['ace'], 'ace/mode/custom_mode_worker', 'CustomModeWorker'); PS - No idea if it would cause any problem but haven't encountered anything till now. |
I have a custom mode and it has to load its own custom worker. I am trying to implement it using, createWorker method of the mode.
My mode file:
Error: Can't resolve 'brace/worker/worker_client'
Need help!
The text was updated successfully, but these errors were encountered: