You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 26, 2023. It is now read-only.
Hi, @dnemoga I followed the steps you mentioned and I got some result to help you out.
Your possible issue
It seems like you experienced this error:
Module not found: Error: Can't resolve 'crypto' in '/.../node_modules/@zilliqa-js/account/dist'
ERROR in ./node_modules/@zilliqa-js/crypto/dist/index.umd.js
I can figure out the problem more precisely if you can provide your environment info and error logs.
Solution
Only If it's the case, you can reference the followings:
Thanks @noelyoo. Yes overriding the webpack config will work. Alternatively you may want to try emitting commonjs modules from typescript instead of esnext, although I have not tested this approach.
Describe the bug
See https://github.com/Zilliqa/Zilliqa-JavaScript-Library/blob/eed3fbc01ca7c0036845ed1c6c31cf9a925ce94f/packages/zilliqa-js-crypto/src/random.ts#L19-L21
You are using
require('crypto')
under condition which causes errors while building apps via Webpack or Angular build tools.To Reproduce
Steps to reproduce the behavior:
@angular/cli
)@zilliqa-js/crypto
as a dependencyThe text was updated successfully, but these errors were encountered: