comlink
comlink copied to clipboard
Worker is undefined. Is there any Worker polyfill supported with comlink?
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
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!