title: Using craco in new react project - what would cause this error ? (UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_VALUE]: ...)
body: <h2>Summary</h2>
  <p>In creating a new project and attempting to use craco with it I've come across an error which I don't understand.</p>
  <h2>What I've got</h2>
  <p>The error looks like this ...</p>
  <pre><code>$ craco start
  (node:125281) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_VALUE]: The argument 'id' must be a non-empty string. Received ''
      at Module.require (internal/modules/cjs/loader.js:1084:11)
      at require (internal/modules/cjs/helpers.js:73:18)
      at getConfigAsObject (/home/glaucon/src/20210416testB/my-app/node_modules/@craco/craco/lib/config.js:46:20)
      at loadCracoConfigAsync (/home/glaucon/src/20210416testB/my-app/node_modules/@craco/craco/lib/config.js:69:34)
      at Object.&lt;anonymous&gt; (/home/glaucon/src/20210416testB/my-app/node_modules/@craco/craco/scripts/start.js:22:1)
      at Module._compile (internal/modules/cjs/loader.js:1200:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
      at Module.load (internal/modules/cjs/loader.js:1049:32)
      at Function.Module._load (internal/modules/cjs/loader.js:937:14)
      at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
  (Use `node --trace-warnings ...` to show where the warning was created)
  (node:125281) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
  (node:125281) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  Done in 1.06s.
  
  
  </code></pre>
  <h2>What I've done</h2>
  <p>What I've done to get to that point is ...</p>
  <pre><code>$ yarn global remove create-react-app
  $ mkdir 20210416testB
  $ cd 20210416testB
  $ npx create-react-app my-app
  $ cd my-app/
  $ yarn add @craco/craco
  </code></pre>
  <p>Amended package.json as <a href="https://www.npmjs.com/package/@craco/craco#installation" rel="nofollow noreferrer">follows</a> ...</p>
  <pre><code>&quot;scripts&quot;: {
  -   &quot;start&quot;: &quot;react-scripts start&quot;,
  +   &quot;start&quot;: &quot;craco start&quot;,
  -   &quot;build&quot;: &quot;react-scripts build&quot;,
  +   &quot;build&quot;: &quot;craco build&quot;
  -   &quot;test&quot;: &quot;react-scripts test&quot;,
  +   &quot;test&quot;: &quot;craco test&quot;
  }
  </code></pre>
  <p>And then done</p>
  <pre><code>$ yarn start
  </code></pre>
  <p>At which point I got the error above so I</p>
  <pre><code>$ rm -rf ./node_modules/
  $ yarn install
  $ yarn start
  </code></pre>
  <p>But I still get the error above.</p>
  <p>Would be grateful for any suggestions.</p>