Skip to content

Conversation

@alec-c4
Copy link
Contributor

@alec-c4 alec-c4 commented Nov 21, 2025

The svelte.config.js file is only created when using the --example-page flag (which is the default). When generators are run with --no-example-page, this essential configuration file is not created, causing Vite to display a warning:

[vite-plugin-svelte] no Svelte config found at /path/to/project - using default configuration.

While not breaking, this warning appears on every Vite server start and indicates missing project configuration that should be present for all Svelte projects.

The svelte.config.js file is listed in the copy_files section of frameworks.yml, which is only processed by the install_example_page method. This method is skipped when --no-example-page is used.

Changes:

  1. Remove svelte.config.js from copy_files in frameworks.yml to prevent duplication
  2. Add explicit copying of svelte.config.js in the install_inertia method for Svelte framework

@skryukov
Copy link
Collaborator

Gee, it's broken on so many levels 😂 Thank you @alec-c4!

@bknoles bknoles merged commit 209ee25 into inertiajs:master Nov 21, 2025
31 checks passed
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

Successfully merging this pull request may close these issues.

3 participants