title: Failed to load next.config.js
body: <p>After cloning the <a href="https://github.com/colbyfayock/next-wordpress-starter" rel="noreferrer">repository</a> I created and set my <code>.env.local</code> file, ran <code>npm i</code> then ran <code>npm run dev</code>. The server starts, env is loaded from <code>.env.local</code> however it immediately fails prompting me with the following:</p>
  <pre><code>error - Failed to load next.config.js, see more info here https://nextjs.org/docs/messages/next-config-error
  Error: Not supported
      at Object.loadConfig [as default] (C:\Users\Nick\Desktop\rebuild\node_modules\next\dist\server\config.js:399:74)
      at async NextServer.loadConfig (C:\Users\Nick\Desktop\rebuild\node_modules\next\dist\server\next.js:110:22)
      at async NextServer.prepare (C:\Users\Nick\Desktop\rebuild\node_modules\next\dist\server\next.js:92:24)
      at async C:\Users\Nick\Desktop\rebuild\node_modules\next\dist\cli\next-dev.js:126:9
  npm ERR! code ELIFECYCLE
  npm ERR! errno 1
  npm ERR! rebuild@0.1.0 dev: `next dev`
  npm ERR! Exit status 1
  npm ERR!
  npm ERR! Failed at the rebuild@0.1.0 dev script.
  npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
  
  npm ERR! A complete log of this run can be found in:
  npm ERR!     C:\Users\Nick\AppData\Roaming\npm-cache\_logs\2021-10-29T19_47_30_427Z-debug.log
  </code></pre>
  <p>The NextJS documentation says: <code>See the error message in your terminal where you started next to see more context.</code> however all it is telling me is Not Supported.</p>
  <p>I'm not familiar with the error and was looking for guidance.</p>