quick-start icon indicating copy to clipboard operation
quick-start copied to clipboard

add option to start with SvelteKit instead of Svelte

Open zunaidFarouque opened this issue 1 year ago • 2 comments

Clear and concise description of the problem

self explanatory

Used Scaffolding

create-electron

Suggested solution

Please add an option to add SvelteKit and SvelteKit typescript to a new project

Alternative

No response

Additional context

No response

Validations

zunaidFarouque avatar Jul 07 '24 17:07 zunaidFarouque

I have a template which got it working on dev, but compiling it to an executable gives me an error that it needs an index.html.

The following Vite config options will be overridden by SvelteKit:
  - root
The following Vite config options will be overridden by SvelteKit:
  - build.outDir
  - build.rollupOptions.input
The electron vite renderer config build.target is not "chrome?" or "es?". This could be a mistake.
vite v5.3.4 building SSR bundle for production...
✓ 79 modules transformed.
vite v5.3.4 building for production...
✓ 0 modules transformed.
x Build failed in 3ms
x Build failed in 738ms
error during build:
[vite-plugin-sveltekit-compile] Could not resolve entry module "index.html".
Could not resolve entry module "index.html".
    at getRollupError (file:///home/roboroads/BagOfHolding/I.T.it/Projects/electron-vite-sveltekit/node_modules/rollup/dist/es/shared/parseAst.js:392:41)
    at error (file:///home/roboroads/BagOfHolding/I.T.it/Projects/electron-vite-sveltekit/node_modules/rollup/dist/es/shared/parseAst.js:388:42)
    at ModuleLoader.loadEntryModule (file:///home/roboroads/BagOfHolding/I.T.it/Projects/electron-vite-sveltekit/node_modules/rollup/dist/es/shared/node-entry.js:19157:20)
    at async Promise.all (index 0)

Roboroads avatar Jul 30 '24 19:07 Roboroads

Very much interested in having SvelteKit be an option instead of plain Svelte.

KevinNovak avatar Sep 10 '25 04:09 KevinNovak