-
-
Notifications
You must be signed in to change notification settings - Fork 43
Open
Description
The Svelte template scripts in this CLI (such as create/templates/svelte/generate-scripts.js) are not compatible with Svelte v5. For example, Svelte v5 no longer supports initialization patterns like new App({ ... }), but the CLI templates still use old patterns from Svelte v3/v4.
The main Framework7 repository's kitchen-sink examples are already updated for Svelte v5, but the CLI templates have not been migrated accordingly. This causes new projects generated from CLI to fail with Svelte v5 or produce outdated boilerplate.
Suggestions:
- Update all Svelte template files in CLI to remove legacy Svelte v3/v4 syntax (such as
new App({...})) and follow Svelte v5 initialization as per main repo kitchen-sink examples. - Audit Vue and React templates (
create/templates/vue/*,create/templates/react/*) for similar legacy logic; ensure none rely on patterns broken (or latest framework versions). - Test CLI output with latest versions to guarantee compatibility.
- Outdated Svelte v4 method:
const app = new App({ ... })
- Kitchen-sink repo for latest Svelte v5 example:
https://github.com/framework7io/framework7/tree/master/kitchen-sink
Metadata
Metadata
Assignees
Labels
No labels