amplify-js: React Native - Error: Unable to resolve module ‘stream’

Reopening this issue, can the fix from aws-amplify v0.1.34 be added to aws-amplify-react-native please

There appears to be a node core module imported from this package via the aws-amplify package.

error: bundling failed: Error: Unable to resolve module stream from /Users/joshua/Documents/side-projects/RoomShakeClient/node_modules/cipher-base/index.js: Module does not exist in the module map Does anybody know a fix for this? I’ve downgraded a few versions but it doesn’t seem to help

About this issue

  • Original URL
  • State: closed
  • Created 6 years ago
  • Comments: 26 (8 by maintainers)

Most upvoted comments

Using npm instead of yarn solved the issue for us. Not sure what the exact reason is but that might be something to look into.

It requires node.js modules (e.g. stream). With latest versions of RN these aren’t picked up by the packager.