Describe the bug
Deleting and reinitializing amplify with authentication leads to stale values in aws-exports.js
Amplify CLI Version
4.6.0
To Reproduce
npx react-native init AddAuthamplify initamplify add authamplify pushaws_cognito_identity_pool_id and aws_user_pools_id to aws-exports.jsamplify deleteamplify initamplify add authamplify pushaws-exports.js. The new user and identity pools are created, but the aws-exports.js does not point to them. This leads to all sorts of weird errors when you actually try to run your app.Expected behavior
The second amplify push should update the aws-exports.js file correctly
Desktop (please complete the following information):
Additional context
I've been experimenting with authentication, which is why I've been deleting and reinitializing amplify often.
Amplify CLI does not overwrite existing values if aws-export.js and it is not deleteing aws-export.js file after running amplify delete.
I am marking this as a bug
I ran into this issue myself and found running amplify pull will update aws-export.js.
Closing this issue as the fix has been merged and was included in the 4.13+ release.
Most helpful comment
Amplify CLI does not overwrite existing values if
aws-export.jsand it is not deleteingaws-export.jsfile after runningamplify delete.I am marking this as a bug