title: How can I fix Detox Package subpath './build/cli/args' is not defined by "exports"
body: <p>I am setting up detox for react native project and I have been working on the configs and when i sis the <code>detox build --configuration android</code> the build succeeded but when I am trying to run the <code>detox test --configuration android</code> I will end up getting following error <code>detox[13452] ERROR: [cli.js] Error [ERR_PACKAGE_PATH_NOT_EXPORTED]: Package subpath './build/cli/args' is not defined by &quot;exports&quot; in /Users/Desktop/vahingonsattuessa/node_modules/jest-cli/package.json</code></p>
  <p>My <code>.detoxrc.json</code> file is looking as follows:</p>
  <pre><code>{
    &quot;testRunner&quot;: &quot;jest&quot;,
    &quot;runnerConfig&quot;: &quot;e2e/config.json&quot;,
    &quot;apps&quot;: {
      &quot;android&quot;: {
        &quot;type&quot;: &quot;android.apk&quot;,
        &quot;binaryPath&quot;: &quot;android/app/build/outputs/apk/debug/app-debug.apk&quot;,
        &quot;build&quot;: &quot;cd android &amp;&amp; ./gradlew assembleDebug assembleAndroidTest -DtestBuildType=debug &amp;&amp; cd ..&quot;
      }
    },
    &quot;devices&quot;: {
      &quot;simulator&quot;: {
        &quot;type&quot;: &quot;ios.simulator&quot;,
        &quot;device&quot;: {
          &quot;type&quot;: &quot;iPhone 12&quot;
        }
      },
      &quot;emulator&quot;: {
        &quot;type&quot;: &quot;android.emulator&quot;,
        &quot;device&quot;: {
          &quot;avdName&quot;: &quot;Pixel_3a_API_30_x86&quot;
        }
      }
    },
    &quot;configurations&quot;: {
      &quot;ios&quot;: {
        &quot;device&quot;: &quot;simulator&quot;,
        &quot;app&quot;: &quot;ios&quot;
      },
      &quot;android&quot;: {
        &quot;device&quot;: &quot;emulator&quot;,
        &quot;app&quot;: &quot;android&quot;
      }
    }
  }
  </code></pre>