Describe the bug
I got message when using latest version of @coolwallet/transport-react-native-ble and @coolwallet/core
I tried all of command below but does not worked
1. Clear watchman watches: watchman watch-del-all
2. Delete node_modules and run yarn install
3. Reset Metro's cache: yarn start --reset-cache
4. Remove the cache: rm -rf /tmp/metro-*
error: Error: Unable to resolve module crypto from /Users/userA/workspace/ReactWallet/node_modules/@coolwallet/core/lib/config/index.js: crypto could not be found within the project or in these directories:
node_modules/@coolwallet/core/node_modules
node_modules
If you are sure the module exists, try these steps:
1. Clear watchman watches: watchman watch-del-all
2. Delete node_modules and run yarn install
3. Reset Metro's cache: yarn start --reset-cache
4. Remove the cache: rm -rf /tmp/metro-*
16 | var general = _interopRequireWildcard(require("../apdu/general"));
17 |
> 18 | var _hash = require("../crypto/hash");
| ^
19 |
20 | var _param = require("./param");
21 |
at ModuleResolver.resolveDependency (/Users/userA/workspace/ReactWallet/node_modules/metro/src/node-haste/DependencyGraph/ModuleResolution.js:234:15)
at DependencyGraph.resolveDependency (/Users/userA/workspace/ReactWallet/node_modules/metro/src/node-haste/DependencyGraph.js:413:43)
at Object.resolve (/Users/userA/workspace/ReactWallet/node_modules/metro/src/lib/transformHelpers.js:317:42)
at resolve (/Users/userA/workspace/ReactWallet/node_modules/metro/src/DeltaBundler/traverseDependencies.js:629:33)
at /Users/userA/workspace/ReactWallet/node_modules/metro/src/DeltaBundler/traverseDependencies.js:645:26
at Array.reduce (<anonymous>)
at resolveDependencies (/Users/userA/workspace/ReactWallet/node_modules/metro/src/DeltaBundler/traverseDependencies.js:644:33)
at /Users/userA/workspace/ReactWallet/node_modules/metro/src/DeltaBundler/traverseDependencies.js:329:33
at Generator.next (<anonymous>)
at asyncGeneratorStep (/Users/userA/workspace/ReactWallet/node_modules/metro/src/DeltaBundler/traverseDependencies.js:137:24)
To Reproduce
Steps to reproduce the behavior:
- yarn add @coolwallet/transport-react-native-ble @coolwallet/core
- cd ios && pod install && cd ..
- yarn start
- See error
Environment:
- @coolwallet/transport-react-native-ble : "0.1.0"
- @coolwallet/core : "^1.0.3"
- React Native using Typescript
Describe the bug
I got message when using latest version of @coolwallet/transport-react-native-ble and @coolwallet/core
I tried all of command below but does not worked
To Reproduce
Steps to reproduce the behavior:
Environment: