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

Cannot use hypercore in browser #234

Closed
tjmehta opened this issue Nov 5, 2019 · 3 comments
Closed

Cannot use hypercore in browser #234

tjmehta opened this issue Nov 5, 2019 · 3 comments

Comments

@tjmehta
Copy link

tjmehta commented Nov 5, 2019

When I create a webpack bundle that includes hypercore I get a runtime error in noise-protocol on line 8 of cipher.js (sodium.crypto_aead_xchacha20poly1305_ietf_KEYBYTES is undefined...)

noise-protocol appears to use sodium-native, should it be using sodium-universal?

@tjmehta tjmehta changed the title Cannot create webpack bundle that includes hypercore Cannot use hypercore in browser Nov 5, 2019
@DougAnderson444
Copy link

@tjmehta have you tried making a Hypercore using the dat-sdk? It uses an alias on sodium in the browser to make it work.

@tjmehta
Copy link
Author

tjmehta commented Sep 24, 2020

❗️I'll try it out

@mafintosh
Copy link
Contributor

works in the browser since a couple of updates

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