title: Getting errors when trying to 'next build && next export'
body: <p>I'm trying to build and export my Next.js app. However, the build is failing, producing the following error below, which is repeated for every page.</p>
  <pre><code>[  ==] info  - Generating static pages (0/30)
  Error occurred prerendering page &quot;/&quot;. Read more: 
  https://nextjs.org/docs/messages/prerender-error
  Error: Cannot find module for page: /
      at pageNotFoundError
  </code></pre>
  <p>This is the final error output:</p>
  <pre><code>&gt; Build error occurred
  Error: Export encountered errors on following paths:
      /
      /about-meadowvalefoods
      /careers
      /case-studies
      /case-studies/[id]
      /contact-us
      /export
      /find-a-supplier
      /industry-news
      /industry-news/[id]
      /my-account/dashboard
      /our-companies
      /our-products
      /our-products/1
      /our-products/10
      /our-products/11
      /our-products/12
      /our-products/13
      /our-products/14
      /our-products/15
      /our-products/2
      /our-products/3
      /our-products/4
      /our-products/5
      /our-products/6
      /our-products/7
      /our-products/8
      /our-products/9
      /point-of-sale
      /point-of-sale/images
  </code></pre>
  <p>info  - Using webpack 5 and
  &quot;next&quot;: &quot;11.0.1&quot;,</p>
  <p>Does anyone know what the problem is?</p>