javascript-sdk
javascript-sdk copied to clipboard
Unable to resolve module @ledgerhq/hw-transport-node-hid
got error when add lib to react-native project
Error: Unable to resolve module @ledgerhq/hw-transport-node-hid from node_modules/@binance-chain/javascript-sdk/lib/ledger/index.js: @ledgerhq/hw-transport-node-hid could not be found within the project or in these directories:
node_modules/@binance-chain/javascript-sdk/node_modules
node_modules
../../node_modules
29 | /* eslint-disable*/
30 | // intentionally ambiguous to confuse webpack (we don't need this in web builds)
> 31 | var LEDGER_NODE_HID_TRANSPORT_MODULE = "@ledgerhq/hw-transport-node-hid";
| ^
32 | var isBrowser = typeof window !== "undefined"; // const Ledger = module.exports
33 |
34 | var Ledger = {