Error When Browserify Coinkey
dqtuan106 opened this issue · comments
Hi,
I follow these step guide from this page
http://cryptocoinjs.com/modules/currency/coinkey/
!-----------
Browser Support
Clone the repo: git clone https://github.com/cryptocoinjs/coinkey
Install Browserify: npm install -g browserify
Nav to repo: cd coinkey
Install dependencies: npm install
Run browserify: browserify --standalone coinkey lib/coinkey.js > lib/coinkey.bundle.js
--------------!
and when I run "browserify: browserify --standalone coinkey lib/coinkey.js > lib/coinkey.bundle.js" I have this error
'module "crypto" not found from coinkey/node_module/coinstring/lib/coinstring.js'
Can I help me ?!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Thank you very much!
PS: I run coinkey with nodejs very "OK", but when I browserfy coinkey it does not work! I need to browserfy coinkey.
Ok, I just updated and tested it. It should work now. Try it again. (Delete current repo, clone again, install deps)
Also, instead of:
browserify --standalone coinkey lib/coinkey.js > lib/coinkey.bundle.js
run:
browserify --standalone CoinKey lib/coinkey.js > lib/coinkey.bundle.js
Now, I can Browserify
Thanks very much!