title: Nx Deployment on Amplify, Can't Find Custom Module Members
body: <pre><code>2022-08-19T20:07:05.596Z [INFO]: 
                                   &gt;  NX   Successfully ran target puppy-client:build:production for project myProject
  2022-08-19T20:07:05.597Z [INFO]: 
  2022-08-19T20:07:05.597Z [INFO]: &gt;  NX   Cannot find configuration for task myProject:myProject:build:production
                                   Error: Cannot find configuration for task myProject:myProject:build:production
                                   at getExecutorNameForTask (/codebuild/output/src765821316/src/workspace/node_modules/nx/src/tasks-runner/utils.js:125:15)
                                   at getExecutorForTask (/codebuild/output/src765821316/src/workspace/node_modules/nx/src/tasks-runner/utils.js:131:22)
                                   at getCustomHasher (/codebuild/output/src765821316/src/workspace/node_modules/nx/src/tasks-runner/utils.js:137:21)
                                   at TasksSchedule.&lt;anonymous&gt; (/codebuild/output/src765821316/src/workspace/node_modules/nx/src/tasks-runner/tasks-schedule.js:114:62)
                                   at Generator.next (&lt;anonymous&gt;)
                                   at /codebuild/output/src765821316/src/workspace/node_modules/tslib/tslib.js:118:75
                                   at new Promise (&lt;anonymous&gt;)
                                   at Object.__awaiter (/codebuild/output/src765821316/src/workspace/node_modules/tslib/tslib.js:114:16)
                                   at TasksSchedule.hashTask (/codebuild/output/src765821316/src/workspace/node_modules/nx/src/tasks-runner/tasks-schedule.js:113:24)
                                   at TasksSchedule.&lt;anonymous&gt; (/codebuild/output/src765821316/src/workspace/node_modules/nx/src/tasks-runner/tasks-schedule.js:61:24)
  2022-08-19T20:07:05.614Z [ERROR]: !!! Build failed
  2022-08-19T20:07:05.614Z [ERROR]: !!! Non-Zero Exit Code detected
  2022-08-19T20:07:05.615Z [INFO]: # Starting environment caching...
  2022-08-19T20:07:05.615Z [INFO]: # Environment caching completed
  Terminating logging...
  </code></pre>
  <p>Does anyone have any experience deploying an Nx repo to AWS Amplify? I can't seem to use <code>--verbose</code> to print the error out in my build settings.</p>
  <pre><code># build settings
  
  version: 1
  # backend:
  #   phases:
  #     build:
  #       commands:
  #         - '# Execute Amplify CLI with the helper script'
  #         - amplifyPush --simple
  frontend:
    phases:
      preBuild:
        commands:
          - npm i -g nx
          - yarn install
      build:
        commands:
          - nx build myProject --prod --verbose
    artifacts:
      baseDirectory: dist/apps/puppy-client/.next
      files:
        - '**/*'
    cache:
      paths:
        - node_modules/**/*
        - libs/**/*
  </code></pre>
  <p>Edit: running build works fine on my machine, no compilation errors.</p>