Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Compatibility Issues with Svelte 5 Runes Mode in Framework7 Svelte

Đang mở
#4,298 1 bình luận 7 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Ít trao đổi
Công nghệ
javascript
Lĩnh vực
frontend, mobile

Hướng nghiên cứu

Bắt đầu với chẩn đoán của trình biên dịch Svelte 5 trong components/list-item.svelte ở dòng 103, sau đó so sánh các khai báo phản ứng liên quan trong list-input.svelte, accordion-content.svelte, accordion-toggle.svelte và accordion.svelte. Tái hiện vấn đề bằng framework7-svelte 8.3.4 với Svelte 5.1.6 và xác minh rằng các lỗi tương thích được báo cáo không còn xảy ra mà không cần hạ cấp Svelte.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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

Ngôn ngữ chính
JavaScript
Star
18.8k
Fork
3.2k
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của framework7io/framework7

Tất cả issue của framework7io/framework7

Issue tương tự

Thêm issue về JavaScript

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.