title: Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'http://localhost:9000/worker-html.js' failed to load
body: <p>I am using Ace Editor in my Angular application. It is defined here - <a href="https://www.npmjs.com/package/ng2-ace-editor" rel="nofollow noreferrer">https://www.npmjs.com/package/ng2-ace-editor</a></p>
  
  <p>Usage:</p>
  
  <p>.html</p>
  
  <pre><code>&lt;ace-editor id="editor" class="form-control" formControlName="answer" [ngClass]="validateField('answer')" [(text)]="text"&gt;&lt;/ace-editor&gt;
  </code></pre>
  
  <p>.ts</p>
  
  <pre><code>ngAfterViewInit(){
  
      this.editor = ace.edit('editor');
           ace.config.set('basePath', '/assets/ui/');
           ace.config.set('modePath', '/assets/ui/');
           ace.config.set('themePath', '/assets/ui/');
          ace.config.setModuleUrl('ace/mode/php_worker','/assets/ui/worker-php.js');
          ace.config.setModuleUrl('ace/mode/coffee_worker','/assets/ui/worker-coffee.js');
          ace.config.setModuleUrl('ace/mode/css_worker','/assets/ui/worker-css.js');
          ace.config.setModuleUrl('ace/mode/javascript_worker','/assets/ui/worker-javascript.js');
          ace.config
  .setModuleUrl('ace/mode/html_worker','/assets/ui/worker-html.js');
          ace.config.setModuleUrl('ace/mode/json_worker','/assets/ui/worker-json.js');
          ace.config.setModuleUrl('ace/mode/lua_worker','/assets/ui/worker-lua.js');
          ace.config.setModuleUrl('ace/mode/xml_worker','/assets/ui/worker-xml.js');
          ace.config.setModuleUrl('ace/mode/xquery_worker','/assets/ui/worker-xquery.js');
          this.editor.setTheme('ace/theme/eclipse');
  }
  </code></pre>
  
  <p>1) I am getting the following error:</p>
  
  <p><code>blob:http://localhos…99f9-cccd48bdb093:1 Uncaught DOMException: Failed to execute 'importScripts' on 'WorkerGlobalScope': The script at 'http://localhost:9000/worker-html.js' failed to load.
      at blob:http://localhost:9000/9446350d-625c-418b-99f9-cccd48bdb093:1:1</code></p>
  
  <p>Why is this?</p>
  
  <p>2) I couldn't find the purpose of these worker files, and from where they get included. </p>