New clean app issue

Started with a new clean project and after ‘run start’ I got,

' [ERROR] **[plugin externalize-deps]** **Failed to resolve entry for package "@sveltejs/vite-plugin-svelte". The package may have incorrect main/module/exports specified in its package.json: No known conditions for "." entry in "@sveltejs/vite-plugin-svelte" package**' error

I tried several times, via terminal and cli, same issue.

✔ All good, you have latest framework7-cli version.
? What type of the app are you targeting? Simple web app
? App (project) name: ZZ
? What type of framework do you prefer? Framework7 with Svelte
? Choose starter template: Single View
? Do you want to setup CSS Pre-Processor No, i am good with CSS
? Do you want to specify custom theme color? No, use default color theme
? Do you want to include Framework7 Icons and Material Icons icon fonts? Yes, include icon fonts
Attention!
For Vite it is recommended to have modern and latest Node.js and NPM.
Make sure you have at least Node.js v14 and NPM v7 installed on your system.
✔ Generating package.json
✔ Creating required folders structure
✔ Adding NPM Dependencies
✔ Adding NPM Dev Dependencies
✔ Creating project files

node (v18.12.1)

OK, I found out that ‘New clean version’ won’t work with latest version of,
@sveltejs/vite-plugin-svelte’ and ‘vite’,

and it works when I downgrade to:
@sveltejs/[email protected]
[email protected]

1 Like