title: Trying to deploy react app on aws amplify but keep getting a "Base Directory not specified for artifacts, unable to create build artifact."
body: <p>My react app is not making it past the build section. I was able to some some of the previous errors, but I am stuck on this one:  <code>2021-10-03T20:15:39.408Z [ERROR]: !!! CustomerError: Base Directory not specified for artifacts, unable to create build artifact..</code></p>
  <p><a href="https://i.stack.imgur.com/JpNGs.png" rel="nofollow noreferrer">Error</a></p>
  <p>This are my build settings, the amplify.yml file. Does anyone know how I can fix this error?</p>
  <pre><code>version: 1
  backend:
    phases:
      build:
        commands:
          - '# Execute Amplify CLI with the helper script'
          - amplifyPush --simple
  frontend:
    phases:
      preBuild:
        commands:
          - npm ci
      build:
        commands:
          - node -v
          - npm run-script build
      baseDirectory: build
      files:
        - '**/*'
    cache:
      paths:
        - node_modules/**/*
  </code></pre>