Open konstantinvlasenko opened 7 years ago
@konstantinvlasenko I think I was having the same issue as you using webpack but with AngularJS. Fix was to not rely on the file package.json
is pointing to which does not exist. Ended up using this import statement as a work around:
import CognitoAuth from 'amazon-cognito-auth-js/src/CognitoAuth.js'
Hope this helps.
If your project uses React structure, this will work: import CognitoAuth from 'amazon-cognito-auth-js/src/CognitoAuth.js'
Hi,
I've installed npm install --save https://github.com/aws/amazon-cognito-auth-js/tarball/master I am having this webpack.base.conf.js file. But it still complaints that file amazon-cognito-auth-js can't be found :( Maybe some obvious issue with my configuration?