title: Vite | Could not resolve entry module (chroootwww/index.html)
body: <p>I have problem. At command line I do <code>npm run build</code> and result is:</p>
  <pre><code>ondrej@vostro-ov:/mnt/web_x1/aou511/chrootwww$ npm run build
  
  &gt; vue@0.0.0 build
  &gt; vite build
  
  vite v3.1.0 building for production...
  ✓ 0 modules transformed.
  Could not resolve entry module (chroootwww/index.html).
  error during build:
  Error: Could not resolve entry module (chroootwww/index.html).
      at error (file:///mnt/web_x1/aou511/chrootwww/node_modules/rollup/dist/es/shared/rollup.js:1858:30)
      at ModuleLoader.loadEntryModule (file:///mnt/web_x1/aou511/chrootwww/node_modules/rollup/dist/es/shared/rollup.js:22369:20)
      at async Promise.all (index 0)
  </code></pre>
  <p>File <strong>vite.config.js is</strong>:</p>
  <pre><code>// https://vitejs.dev/config/
  export default defineConfig({
    plugins: [vue()],
    resolve: {
      alias: {
        '@': fileURLToPath(new URL('./src', import.meta.url))
      }
    }, 
    root: 'chroootwww/',
    build: {
      sourcemap: true,
      outDir: 'www/dist', 
    },
  })
  </code></pre>
  <p>File <em>index.html</em> exist
  <a href="https://i.stack.imgur.com/lbIfA.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lbIfA.png" alt="enter image description here" /></a></p>
  <p>Does anyone know what the problem is, please?
  Thanks for your reply :-)</p>