Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Working fine locally but throwing a TypeError when deployed to production. #47

Open
benslv opened this issue Apr 19, 2022 · 3 comments
Open

Comments

@benslv
Copy link

benslv commented Apr 19, 2022

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:

image

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.

@rien
Copy link

rien commented Aug 19, 2022

We are having the same issue, @benslv did you find a solution?

@benslv
Copy link
Author

benslv commented Aug 19, 2022

Unfortunately I never managed to find a solution.

Instead, I switched across to using regular Web Workers. You can see it here and here.

@donalffons
Copy link

I had the same issue. For me, the suggestion in this comment resolved the problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants