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

Uncaught TypeError: Cannot set property 'createCredentials' of undefinedΒ #679

@PrashanthThugaiah

Description

@PrashanthThugaiah

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:94

cognito-sdk-issue

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:

  1. I am not facing any issues at dev environment.
  2. 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions