Module 'stream' or 'crypto' doesn't exist in the module map

Issue #18 invalid
Artem Tkachuk created an issue

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)

  1. Log in to comment