alex8088 / quick-start

An easy way to start a front-end project.
MIT License
248 stars 34 forks source link

add option to start with SvelteKit instead of Svelte #40

Open vfxturjo opened 2 months ago

vfxturjo commented 2 months ago

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

Roboroads commented 1 month ago

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)