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

Incompatibility with web worker? #30

Open
finlaydotb opened this issue Apr 4, 2021 · 2 comments
Open

Incompatibility with web worker? #30

finlaydotb opened this issue Apr 4, 2021 · 2 comments

Comments

@finlaydotb
Copy link

I am using another deno library which has god_crypto as a dependency and introducing that library leads to compile error which comes from god_crypto

I created the issue here for that JamesBroadberry/deno-bcrypt#15

But since the error seems to stem from god_crypto I was wondering whether you might have any insight into the issue and better still suggestions on how to fix it.

Thanks

@timonson
Copy link

timonson commented Apr 6, 2021

Hi @invisal , window is not available in a Web Worker.
I would suggest changing window to globalThis.
Thank you!
Zaubrik/djwt#48

@finlaydotb
Copy link
Author

But the baffling thing is that there is no where in my application where I am using window in the code. So not sure where to change window to globalThis 😬

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

2 participants