Ask Your Question

Revision history [back]

There could be several reasons why the aws-exports.js file is missing even after executing amplifyPush --simple. Here are a few possible reasons:

  1. The file might not have been generated during the push process. This could happen if there were errors during the push process that prevented the file from being generated.

  2. The file might have been deleted accidentally. Make sure that the file is not in the .gitignore list and that it has not been manually deleted.

  3. The file might be located in a different directory. By default, the file is located in the src folder, but it's possible that it was moved to a different location.

To resolve the issue, try executing amplifyPush --force to regenerate the file. If that doesn't work, check if any of the above reasons apply and troubleshoot accordingly.