title: Cannot find module '@next/env' Next-js Vercel
body: <p>I have developed a Next.js app that works fine on my local machine. I am trying to deploy my app on Vercel but it keeps throwing me the error <code>Cannot find module '@next/env'</code> as shown here.</p>
  <p><a href="https://i.stack.imgur.com/AEDbn.png" rel="noreferrer"><img src="https://i.stack.imgur.com/AEDbn.png" alt="enter image description here" /></a></p>
  <p>I think it's because of the <code>next-sitemap</code> package. I have checked my node modules and there is no <code>env</code> file or folder inside the <code>@next</code> folder.
  I have also researched around but haven't been able to find any solution.</p>
  <p>I have also tried deploying my app on Netlify and it throws the same error. Any help would be appreciated a lot.</p>
  <p><strong>UPDATE:
  I was finally able to solve this by updating my next.js to 10.2.3</strong></p>