amazon-archives / aws-mobile-ionic-sample

It is a Ionic Sample App that displays how web developers can integrate their front end with AWS on the backend. The App interacts with AWS Cognito, API Gateway, Lambda and DynamoDB on the backend.
Other
82 stars 41 forks source link

A few issues encountered along the way... #11

Open mlota opened 6 years ago

mlota commented 6 years ago

Hi,

I had the same problems other users have mentioned in issue #8 and #10 but a few others also. I managed to eventually get it working by the following steps:

let aws_cloud_logic_custom_obj = JSON.parse(JSON.stringify(aws_cloud_logic_custom))
npm install amazon-cognito-identity-js@1.31.0 --save

After that, everything seems to work ok.

Thanks

powerful23 commented 6 years ago

@mlota thanks for your feedback. This issue was caused by some conflicts between aws-sdk and amazon-cognito-identity-js which has been solved in the latest aws-amplify. You can now update to the latest without locking the version of that amazon-cognito-identity-js.

SimoneMSR commented 6 years ago

@mlota After updating to amazon-cognito-identity-js@1.31.0 the error becomes Error: Cannot find module "aws-sdk/global"

It seems amazon identity is trying to include aws-sdk/global without success, even if it has aws-sdk as dependency in the package.json To solve I did npm install --save aws-sdk@2.92.0