Forum Discussion

keerthanabasa's avatar
keerthanabasa
Regular Visitor
7 months ago
Solved

Load React component with workers inside power BI - Failed to execute 'fetch' on 'WorkerGlobalScope'

Followed the solution in using worker.js as BLOB in react component in a visual.
https://community.fabric.microsoft.com/t5/Desktop/Load-React-component-inside-power-BI-Failed-to-construct-Worker/m-p/4916483#M1454827


But faing the following error:
blob:null/ Uncaught (in promise) TypeError: Failed to execute 'fetch' on 'WorkerGlobalScope': Failed to parse URL from worker.wasm at instantiateAsync at createWasm.
Any possible fixes to resolve this?

  • The blob worker has no meaningful base URL; fetch('worker.wasm') is relative and cannot be resolved. That’s exactly the “Failed to parse URL from worker.wasm” you see. The fix is to either remove the fetch (instantiate from bytes) or give the worker a real absolute URL to the wasm.

3 Replies

  • The blob worker has no meaningful base URL; fetch('worker.wasm') is relative and cannot be resolved. That’s exactly the “Failed to parse URL from worker.wasm” you see. The fix is to either remove the fetch (instantiate from bytes) or give the worker a real absolute URL to the wasm.