question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Amplify Console build issue

See original GitHub issue

I have a build that deploys fine using the CLI but not with the Amplify Console. The build log reports that it Cannot find file './components/SurveyContainer' in './src'. The repo is currently private, but I can show more if necessary.

The response during the frontend build activity is:

# Starting phase: build
2019-02-19T05:14:34.755Z [INFO]: # Executing command: yarn run build
2019-02-19T05:14:34.922Z [INFO]: yarn run v1.13.0
2019-02-19T05:14:34.973Z [INFO]: $ react-scripts build
2019-02-19T05:14:36.211Z [INFO]: Creating an optimized production build...
2019-02-19T05:14:40.807Z [INFO]: Failed to compile.
2019-02-19T05:14:40.809Z [INFO]: ./src/App.jsx
Cannot find file './components/SurveyContainer' in './src'.
2019-02-19T05:14:40.832Z [WARNING]: error Command failed with exit code 1.
2019-02-19T05:14:40.834Z [INFO]: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
2019-02-19T05:14:40.838Z [ERROR]: !!! Build failed
2019-02-19T05:14:41.791Z [ERROR]: !!! Non-Zero Exit Code detected
2019-02-19T05:14:41.792Z [INFO]: # Starting Environment Caching...
2019-02-19T05:14:41.792Z [INFO]: Uploading environment cache artifact...
2019-02-19T05:14:41.905Z [INFO]: # Environment Caching completed
Terminating logging...

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14

github_iconTop GitHub Comments

8reactions
funkfingercommented, Mar 14, 2019

After a productive call with folks at Amazon, this has been resolved. The issue was with the case insensitive nature of OS X vs the case sensitive nature of the deployment environment. OS X was not updating the filename in git even though the file name was changed on the local OS X machine- OS X wasn’t seeing a filename change when just the case was changing.

The solution was to change the filename case at GitHub.com. Had this not been an option, I believe I would have needed to delete the file and re-create it with the correct filename case.

Thanks Amazon! I’m looking forward to using these tools.

2reactions
sokic4commented, Jan 30, 2021

Ma mrs

Read more comments on GitHub >

github_iconTop Results From Across the Web

AWS Amplify console fails to build: ✖ There was an error ...
AWS Amplify console fails to build: ✖ There was an error initializing your environment. #2318. Open. 4 tasks done.
Read more >
Configuring build settings - AWS Amplify Hosting
Build settings is visible in the Amplify console's App settings menu only when an app is set up for continuous deployment and connected...
Read more >
Matt Lavin on Twitter
Issue Description Amplify console fails to continue building the project and gets stuck on preBuild stage after upgrading to amplify-cli 4.8.0. it gets...
Read more >
AWS Console Build Problem
I observed that the first successful build would successfully create the Amplify environment, but subsequent builds would fail to do so. I am...
Read more >
Connecting with your GitHub to build a CI/CD environment #2
Connect your GitHub repository to Amplify Console · In previous steps, you have deployed applications by running amplify publish · When you are...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found