Search code examples
javascriptrequirejsace-editor

Ace's instance not defined in custom worker


I was following this tutorial to create my custom worker in order to validate syntaxes.

My custom mode creates an instance of my custom worker and returns it to ace.

The problem is that I don't have access to requirejs and ace global instance in my custom worker so I can't really do anything.

My code looks exactly like the one in the tutorial

What could be the problem that causes me to lose ace's value in my worker ?


Solution

  • User ace.js from ace-builds/src/noconflict instead of ace-builds/src/