This repository was archived by the owner on Feb 24, 2018. It is now read-only.

Description
Hi Team,
I am using this module(amazon-cognito-identity-js) for my react project(with webpack), This module is creating issue in the production build.
The error is:
Uncaught TypeError: Cannot set property 'createCredentials' of undefined

at index.js:95
at Object../node_modules/aws-sdk/node_modules/crypto-browserify/index.js (index.js:81)
at f (bootstrap 078132641668547bb385:678)
at n (bootstrap 078132641668547bb385:88)
at Object.<anonymous> (browser_loader.js:4)
at Object../node_modules/aws-sdk/lib/browser_loader.js (index.bundle.js:4966)
at f (bootstrap 078132641668547bb385:678)
at n (bootstrap 078132641668547bb385:88)
at Object../node_modules/aws-sdk/browser.js (browser.js:1)
Note:
- I am not facing any issues at dev environment.
- I tested excluding this module from the code base, The build is build is working fine.
Please revert to this issue ASAP on priority.
Thank You
Best Regards,
Prashanth Thugaiah