Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uncaught TypeError: Cannot set property 'createCredentials' of undefined #546

Closed
phstc opened this issue Mar 28, 2018 · 12 comments
Closed
Assignees
Labels
Cognito Related to cognito issues investigating This issue is being investigated

Comments

@phstc
Copy link

phstc commented Mar 28, 2018

This is just to continue the thread left in the archived repo: amazon-archives/amazon-cognito-identity-js#679

image

@phstc
Copy link
Author

phstc commented Mar 28, 2018

@PrashanthThugaiah are you also using babel-polyfill?

@powerful23 powerful23 added the Cognito Related to cognito issues label Mar 28, 2018
@PrashanthThugaiah
Copy link

No.

@supun19
Copy link
Contributor

supun19 commented Apr 3, 2018

I also have this issue. any updates

@stevemao
Copy link

stevemao commented May 26, 2018

A workaround: MacKentoch/react-redux-bootstrap-webpack-starter#5 (comment)

I've had totally the same trouble, so now I can share with u details.
The reason is UglifyJsPlugin. Try to disable the plugin or setup it in a way to skip/exclude aws sdk.

It works :)

@Lasim
Copy link

Lasim commented Jun 5, 2018

Same here.

@simodroussi
Copy link

I've had the same problem when I build my app (in dev mode its working well). I have pinned down the problem to aws-amplify installing amazon-cognito-identity-js in /node_modules with crypto-browserify@^1.0.9 dependency. I fixed it by updating crypto-browserify to 3.12.0 in amazon-cognito-identity-js but that only works in my local machine. When my colleagues use 'npm install' in their machines, they run into the same issue. Is there any fix for this?

@davidpbowe
Copy link

This might not be the best solution but just to get the application working I removed the UglifyJSPlugin from my webpack config. Then built and ran it again

@simodroussi
Copy link

You are right it's not the best solution. At least for me.

@daviskoh
Copy link

same issue. yikes..

@daviskoh
Copy link

MacKentoch/react-redux-bootstrap-webpack-starter#5 (comment)

worked for me though I am unsure how viable this is for everyone

@elorzafe elorzafe added investigating This issue is being investigated and removed investigating This issue is being investigated labels Mar 1, 2019
@elorzafe
Copy link
Contributor

elorzafe commented Mar 1, 2019

Closed by PR #1773

@elorzafe elorzafe closed this as completed Mar 1, 2019
@github-actions
Copy link

This issue has been automatically locked since there hasn't been any recent activity after it was closed. Please open a new issue for related bugs.

Looking for a help forum? We recommend joining the Amplify Community Discord server *-help channels or Discussions for those types of questions.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Cognito Related to cognito issues investigating This issue is being investigated
Projects
None yet
Development

No branches or pull requests

10 participants