comlink icon indicating copy to clipboard operation
comlink copied to clipboard

Worker is undefined. Is there any Worker polyfill supported with comlink?

Open chuckWu1989 opened this issue 5 years ago • 0 comments

Hi, folks. I faced a problem that the worker is undefined. It's a well known issue in sub worker of chrome which version is less than 69 (issue here: https://stackoverflow.com/questions/33990712/uncaught-referenceerror-worker-is-not-defined-while-trying-to-create-a-worker-w/33991381). I had tried many polyfill solution I could find in websites. Such as:

https://github.com/dmihal/Subworkers

Received error

image

https://github.com/pmarfany/worker-polyfill

There is no response and the promise was never return.

https://github.com/nolanlawson/pseudo-worker

Failed. I had indexedDB in worker. This project used the fake worker so that the db failed.

Finally, I think Subworkers is a path we can keep going. However, I have no idea how to solve th problem. Help!

chuckWu1989 avatar Nov 26 '19 08:11 chuckWu1989