Module not found: 'aws-cognito-sdk' node_modules/react-cognito/dist
Closed this issue ยท 15 comments
My compile is balking thusly when installing react-cognito from package.json/npm:
Module not found: 'aws-cognito-sdk' node_modules/react-cognito/dist
+1
- docu being horrible!
I had to do some post install hacking. You can read here about the aws-cognito-sdk: https://github.com/aws/amazon-cognito-identity-js
i have it to! poor docs
yeah bad doccies
docs need a doc!
ok, just hit this. Docs are really horrible,.. kbrown or others: what was the post-install hacking?
Well, never mind- I decided to just drop down a level and use the cognito identity javascript library directly than mess with these wrappers
@kbrown what was your trick to make it work? ^^
@marcmillien I had to recreate the functionality of sdkshim.js and test.config.js in my project. I'm not sure that @nokrosis' solution isn't better if Amazon isn't going to make the aws-cognito-sdk just work.
Thanks ^^. You'r right, the @nokrosis PR is probably the best solution, let's hope it will be merged soon :).
Hi is this problem solved? I have the same error
Hi, we did solve this by aliasing aws-cognito-sdk inside webpack config.
resolve: {
...
alias: {
"aws-cognito-sdk": "amazon-cognito-identity-js/dist/aws-cognito-sdk.min.js"
}
},
fixed in 1.5.0