Forum Discussion
keerthanabasa
7 months agoRegular Visitor
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
- Thomaslleblanc
Super User
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. - v-saisrao-msft
Community Support
Hi keerthanabasa,
Have you had a chance to review the solution we shared by Thomaslleblanc? If the issue persists, feel free to reply so we can help further.
Thank you.
- v-saisrao-msft
Community Support
Hi keerthanabasa,
Checking in to see if your issue has been resolved. let us know if you still need any assistance.
Thank you.