AnsweredAssumed Answered

With version 4.6 I am seeing "unable to create worker" in the console.

Question asked by tonyabo on Mar 16, 2018
Latest reply on Jun 4, 2018 by nordling

Recently upgraded to API 4.6 from 4.4. When running from built JavaScript layer, I am getting the message "[esri.core.workers.JobProxy] Failed to create Worker. Fallback to execute module in main thread" in the console several times when displaying the map. This is followed by:

ErrorEvent {isTrusted: true, message: "Uncaught Error: Uncaught TypeError: Cannot read property 'addEventListener' of undefined", filename: "http://rhel7/pkgs/esri/core/workers/worker.js", lineno: 25, colno: 555, …}


When I set devtools to pause on exceptions, it appears to get the error while evaluating: " self.importScripts(n.loaderUrl)" in the messageHandler function of  worker.js. The object has the type field "<configure>" when this happens.


Note that I am only seeing errors in the built version. When running from source files, there are no errors.


Any guidance to resolving this issue would be appreciated.