Closed Moanrisy closed 1 year ago
Updating vite config file with this solve the problem
import path from 'path';
//import { svelte } from '@sveltejs/vite-plugin-svelte';
const SRC_DIR = path.resolve(__dirname, './src');
const PUBLIC_DIR = path.resolve(__dirname, './public');
const BUILD_DIR = path.resolve(__dirname, './www',);
module.exports = async function() {
const { svelte } = await import('@sveltejs/vite-plugin-svelte');
return {
plugins: [
svelte(),
],
root: SRC_DIR,
base: '',
publicDir: PUBLIC_DIR,
build: {
outDir: BUILD_DIR,
assetsInlineLimit: 0,
emptyOutDir: true,
rollupOptions: {
treeshake: false,
},
},
resolve: {
alias: {
'@': SRC_DIR,
},
},
server: {
host: true,
},
}
}
Issue apparently related to Framework7-CLI, not to the framework itself
Describe the bug
npm start failed after create new project using framework7 cli
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Framework7 should run
Actual Behavior
I don't understand why vite failed. It just show this\
Additional context
It was new project created using framework7 cli