I have problem. At command line I do npm run build and result is:
ondrej@vostro-ov:/mnt/web_x1/aou511/chrootwww$ npm run build
> vue@0.0.0 build
> 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)
File vite.config.js is:
// 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',
},
})
Does anyone know what the problem is, please? Thanks for your reply :-)
