Closed helxsz closed 5 years ago
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?
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.
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?
@helxsz: let's move this discussion to https://github.com/dominictarr/chloride/issues/12, i also made a pull request that might help: https://github.com/dominictarr/chloride/pull/13
@helxsz what command are you running that produces that error?
@ahdinosaur @dominictarr the new pull request works out directly, thanks for the work !!
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