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 event.data 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.
Do you happen to be running an ad-blocker? If you are and disable it, do you still get the same error?
If you're using AdBlock, we're currently trying to figure out which filter list is blocking the workers.
If that's the case, could you provide the filter list you are using?