comlink-loader
comlink-loader copied to clipboard
Working fine locally but throwing a TypeError when deployed to production.
I was using this package to offload some CPU intensive calculations and stop browsers from saying the tab had crashed, and it was all working absolutely fine when hosting the site locally on my machine.
However, upon publishing the site to production (hosted on GitHub Pages using gh-pages), the web-worker no longer runs, and instead throws this error:

I have no idea where to start on debugging this. I would've assumed that, because it worked perfectly locally, it would also work perfectly when published live.
Any thoughts? I can provide more info if you know what would be helpful.
We are having the same issue, @benslv did you find a solution?
Unfortunately I never managed to find a solution.
Instead, I switched across to using regular Web Workers. You can see it here and here.
I had the same issue. For me, the suggestion in this comment resolved the problem.