I am trying to deploy my react app to aws-amplify but I keep getting this error in the build process in aws.
When I run the app in production, "yarn run build" it runs fine locally, but when I push my changes to aws I get the following error:
"Failed to compile.
2020-07-26T15:51:52.356Z [INFO]: ./src/index.js
Cannot find file './App' in './src'.":
more detailed aws error image attached
My folder structure is as follows:
- public
- favicon.ico
- index.html
- logo192.png
- logo512.png
- manifest.json
- robots.txt
- src
- assets
- components
- Contact.js
- Home.js
- Navigation.js
- NotFound.js
- Project.js
- Projects.js
- App.css
- App.js
- App.test.js
- contact.css
- home.css
- index.css
- index.js
- logo.svg
- projects.css
- serviceWorker.js
- setupTest.js
- .gitignore
- package.json
- README.md
- yarn.lock
