Skip to content

Svelte templates in CLI do not support Svelte v5, recommend updating (also review Vue/React compatibility) #218

@huajiqaq

Description

@huajiqaq

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.

Reference:
https://github.com/framework7io/framework7-cli/blob/0a7556a93e368a154043a80a60a648cdbac65fe7/create/templates/svelte/generate-scripts.js

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions