Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Compatibility Issues with Svelte 5 Runes Mode in Framework7 Svelte

オープン
#4,298 コメント 1 件 リアクション 7 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
4/5
見積もり時間
3〜5日
初心者へのやさしさ
45/100
issue の種類
バグ
明瞭さ
おおむね明確
活発さ
静か
技術スタック
javascript
領域
frontend, mobile

調査の方向性

components/list-item.svelte の 103 行目にある Svelte 5 コンパイラの診断から始め、次に list-input.svelte、accordion-content.svelte、accordion-toggle.svelte、accordion.svelte にある関連するリアクティブ宣言を比較します。framework7-svelte 8.3.4 と Svelte 5.1.6 を使用して問題を再現し、Svelte をダウングレードせずに報告された互換性エラーが発生しなくなることを確認します。

索引モデルが issue の本文から書いたものです。

説明

I am experiencing compatibility issues with Svelte 5 Runes Mode in Framework7 Svelte. Specifically, reactive expressions in Framework7 component files throw the following error:

[svelte] reactive_declaration_non_reactive_property
A $: statement (node_modules/​framework7-svelte/​components/​list-item.svelte:103:2) read reactive state that was not visible to the compiler. Updates to this state will not cause the statement to re-run. The behaviour of this code will change if you migrate it to runes mode

For example, in list-item.svelte, this line throws the error:
$: liClasses = classNames( className, { 'list-group-title': groupTitle, 'media-item': isMedia, swipeout, 'accordion-item': accordionItem, 'accordion-item-opened': accordionItemOpened, disabled: disabled && !(radio || checkbox), 'no-chevron': noChevron, 'chevron-center': chevronCenter, 'disallow-sorting': sortable === false, }, colorClasses($$props), );

I am also experiencing this issue in the following files:

  • node_modules/​framework7-svelte/​components/​list-input.svelte:197:2
  • node_modules/​framework7-svelte/​components/​accordion-content.svelte:9:2
  • node_modules/​framework7-svelte/​components/​accordion-toggle.svelte:9:2
  • node_modules/​framework7-svelte/​components/​accordion.svelte:11:2

I am using the latest versions of both Svelte and Framework7. This issue did not occur before updating to Svelte 5. Are there plans to update Framework7 Svelte for Svelte 5 compatibility? How can I resolve this issue without downgrading Svelte?

Versions:
"framework7": "^8.3.4",
"framework7-svelte": "^8.3.4",
"svelte": "^5.1.6"

Thank you

主要言語
JavaScript
スター
18.8k
フォーク
3.2k
PR マージ指標
30日以内にマージされた PR はありません

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

framework7io/framework7 のほかの issue

framework7io/framework7 の issue をすべて見る

似ている issue

JavaScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。