- changed status to invalid
Module 'stream' or 'crypto' doesn't exist in the module map
Hi, I'm using thinbus-srp-js for React Native project. I've installed this lib through
npm install thinbus-srp
but while building and running app I've got 2 similar issues for 'stream' and 'crypto' I've searched it inside node_modules, but they are installed
'stream'
module 'stream-buffers' module 'stream-counter'
'crypto' module 'crypto-js'
Failed to load bundle(http://localhost:8081/index.bundle?platform=ios&dev=true&minify=false) with error:(Unable to resolve module stream
from /root/Desktop/React/auth/node_modules/browserify-sign/browser/index.js
: Module does not exist in the module map
This might be related to https://github.com/facebook/react-native/issues/4968
To resolve try the following:
1. Clear watchman watches: watchman watch-del-all
.
2. Delete the node_modules
folder: rm -rf node_modules && npm install
.
3. Reset Metro Bundler cache: rm -fr $TMPDIR/react-*
or npm start -- --reset-cache
. (null))
38-[RCTCxxBridge loadSource:onProgress:]_block_invoke.250 RCTCxxBridge.mm:441 ___ZL36attemptAsynchronousLoadOfBundleAtURLP5NSURLU13block_pointerFvP18RCTLoadingProgressEU13block_pointerFvP7NSErrorP9RCTSourceE_block_invoke.118 -[RCTMultipartDataTask URLSession:task:didCompleteWithError:] __51-[NSURLSession delegate_task:didCompleteWithError:]_block_invoke227 __NSBLOCKOPERATION_IS_CALLING_OUT_TO_A_BLOCK -[NSBlockOperation main] -[__NSOperationInternal _start:] __NSOQSchedule_f _dispatch_client_callout _dispatch_queue_drain _dispatch_queue_invoke _dispatch_root_queue_drain _dispatch_worker_thread3 _pthread_wqthread start_wqthread
Comments (2)
-
repo owner -
This version of thinbus isn't anything to do with npm. Its a Java version distro that is on maven central. The npm version is over at github the rep link is on the right hand of the npm description page at https://www.npmjs.com/package/thinbus-srp
- Log in to comment
The comments and how to fix it by "sgonyea commented on 25 Dec 2015" on that thread.