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

can't work in browser ? #57

Closed
helxsz opened this issue May 19, 2019 · 6 comments
Closed

can't work in browser ? #57

helxsz opened this issue May 19, 2019 · 6 comments

Comments

@helxsz
Copy link

helxsz commented May 19, 2019

I am playing ssb-keys on the browser along with angular stack, but both ssb-keys and private-box depends on chloride library, and chloride library can not work on the browser.

how would i make it work

@ahdinosaur
Copy link

chloride library can not work on the browser.

hi @helxsz, chloride should be able to work in the browser, can you post the error you're seeing?

@ahdinosaur
Copy link

but it might be that chloride doesn't work in the browser unless you're using browserify, i could see some possible awkwardness with other bundlers from how chloride/index.js does the browser loading.

@helxsz
Copy link
Author

helxsz commented May 20, 2019

yes, my wrong, chloride does work. What doesn't work is node-gyp-build.

That is the error

ERROR in ./node_modules/node-gyp-build/index.js
Module not found: Error: Can't resolve 'fs' in '/projects/insta/instagram/node_modules/node-gyp-build'

As i investigated that angular doesn't support fs anymore, I wondered any way around?

@ahdinosaur
Copy link

@helxsz: let's move this discussion to ssbc/chloride#12, i also made a pull request that might help: ssbc/chloride#13

@dominictarr
Copy link
Contributor

@helxsz what command are you running that produces that error?

@helxsz
Copy link
Author

helxsz commented May 21, 2019

@ahdinosaur @dominictarr the new pull request works out directly, thanks for the work !!

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