Unresolved module bug in react-native project
Version of EOSJS
eosjs@beta
Describe the bug It seems it only happens in react-native project, for now. When import the module and initiate, project shows error as:
error: bundling failed: Error: Unable to resolve module `assert` from `/path/to/project/node_modules/eosjs-ecc/lib/aes.js`: Module `assert` does not exist in the Haste module map
I'm not sure this is the problem of eosjs or issue in react-native. If somebody knows about this, please let me know.
To Reproduce Steps to reproduce the behavior:
- Apply eosjs module in react-native default project
- import module
- Run project
Expected behavior Works well
Smartphone (please complete the following information):
- Device: Android emulator
I have the same issue, anyone can help?!
@djKooks Have you solved the problem?
This is a known issue, eosjs-ecc does not support react-native.
maybe you can choose it in react native. https://github.com/Game-X-Coin/eosjs-rn
@yang24201 no...it seems known issue as in comment. @jeffreyssmith2nd Is there a plan for fix?
maybe you can choose it in react native. https://github.com/Game-X-Coin/eosjs-rn
eosjs-rn also can not operate correctly
try this https://github.com/mvayngrib/rn-nodeify.
The current develop branch dropped eosjs-ecc and uses the elliptic library instead.