Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add option to start with SvelteKit instead of Svelte #40

Open
4 tasks done
vfxturjo opened this issue Jul 7, 2024 · 1 comment
Open
4 tasks done

add option to start with SvelteKit instead of Svelte #40

vfxturjo opened this issue Jul 7, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@vfxturjo
Copy link

vfxturjo commented Jul 7, 2024

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

@vfxturjo vfxturjo added the enhancement New feature or request label Jul 7, 2024
@Roboroads
Copy link

Roboroads commented Jul 30, 2024

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)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants