title: Why am I getting this Error: "Cannot find file './App' in './src'.":?
body: <p>I am trying to deploy my react app to aws-amplify but I keep getting this error in the build process in aws.</p>
  <p>When I run the app in production, &quot;yarn run build&quot; it runs fine locally, but when I push my changes to aws I get the following error:</p>
  <pre><code>&quot;Failed to compile.
  2020-07-26T15:51:52.356Z [INFO]: ./src/index.js
  Cannot find file './App' in './src'.&quot;:
  </code></pre>
  <p><a href="https://i.stack.imgur.com/Ot76N.png" rel="nofollow noreferrer">more detailed aws error image attached</a></p>
  <p>My folder structure is as follows:</p>
  <pre><code>- 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
  </code></pre>
  <p><a href="https://i.stack.imgur.com/T3FPT.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T3FPT.png" alt="app component" /></a></p>
  <p><a href="https://i.stack.imgur.com/5ntNE.png" rel="nofollow noreferrer">screenshot of my index.js and the folder structure</a></p>