AWS放大由于AWS导出导致的部署失败

时间:2020-01-12 22:03:35

标签: reactjs amazon-web-services serverless aws-amplify

我正在尝试将我的reactJs应用程序部署到Amplify。我将我的Github连接到Amplify。在部署过程中,它在“构建”步骤中显示以下错误:

2020-01-07T19:35:22.127Z [INFO]: Failed to compile.
2020-01-07T19:35:22.129Z [INFO]: ./src/index.js
                                 Cannot find file './aws-exports' in './src'.
2020-01-07T19:35:22.149Z [WARNING]: error Command failed with exit code 1.
2020-01-07T19:35:22.150Z [INFO]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2020-01-07T19:35:22.155Z [ERROR]: !!! Build failed
2020-01-07T19:35:22.239Z [ERROR]: !!! Non-Zero Exit Code detected
2020-01-07T19:35:22.239Z [INFO]: # Starting environment caching...

发生这种情况是因为.gitignore忽略了aws-exports。 有人可以告诉我不提交aws-exports来解决此问题的方法吗?

0 个答案:

没有答案