Framework7-cli v7 not configuring properly with framework7 svelte

This error occurs when I do : npm start

error when starting dev server:
Error: Build failed with 1 error:
node_modules/esbuild/lib/main.js:1365:27: 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
at failureErrorWithLog (/workspaces/copilot/node_modules/esbuild/lib/main.js:1604:15)
at /workspaces/copilot/node_modules/esbuild/lib/main.js:1056:28
at runOnEndCallbacks (/workspaces/copilot/node_modules/esbuild/lib/main.js:1476:61)
at buildResponseToResult (/workspaces/copilot/node_modules/esbuild/lib/main.js:1054:7)
at /workspaces/copilot/node_modules/esbuild/lib/main.js:1166:14
at responseCallbacks. (/workspaces/copilot/node_modules/esbuild/lib/main.js:701:9)
at handleIncomingPacket (/workspaces/copilot/node_modules/esbuild/lib/main.js:756:9)
at Socket.readFromStdout (/workspaces/copilot/node_modules/esbuild/lib/main.js:677:7)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:315:12)

downgrade svelte plugin to v1

npm i @sveltejs/[email protected]