Amplify.configure Is Not A Function
Trying to use AWS Amplify with S3 Storage following this tutorial with the manual set up. I created an amplify-test.js file as follows: // import Amplify from 'aws-amplify'; var Am
Solution 1:
If you are using const Amplify = require("aws-amplify");
With
Amplify.default.configure({ Auth: {
  // REQUIRED - Amazon Cognito Identity Pool ID
  identityPoolId: 'my identity pool id', 
  // REQUIRED - Amazon Cognito Region
  region: 'region', 
  // OPTIONAL - Amazon Cognito User Pool ID
  userPoolId: 'my user pool id',
  // OPTIONAL - Amazon Cognito Web Client ID
  userPoolWebClientId: 'XX-XXXX-X_abcd1234', 
},
Storage: {
  bucket: 's3 bucket', //REQUIRED -  Amazon S3 bucket
  region: 'XX-XXXX-X', //OPTIONAL -  Amazon service region
}
});
should solve your problem. It did for me.
Solution 2:
var { Amplify } = require('aws-amplify');
Post a Comment for "Amplify.configure Is Not A Function"