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

SvelteKit: works for dev but error when building executable #576

Open
4 tasks done
Roboroads opened this issue Jul 30, 2024 · 0 comments
Open
4 tasks done

SvelteKit: works for dev but error when building executable #576

Roboroads opened this issue Jul 30, 2024 · 0 comments

Comments

@Roboroads
Copy link

Roboroads commented Jul 30, 2024

Describe the bug

Since SvelteKit compiles itself as a full static website, there's no index.html entrypoint. I feel like some config, after adding the sveltekit plugin, get overridden by electron-vite, which when asks for an index.html entrypoint to be present.

I created a repository with just the changes I did to make SvelteKit working (from the quickstart template svelte-ts); https://github.com/Roboroads/electron-vite-sveltekit

When running npm run build we receive this error:

[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)

Electron-Vite Version

2.3.0

Electron Version

31.3.1

Vite Version

5.3.5

SvelteKit Version

2.5.18

Validations

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

No branches or pull requests

1 participant