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

Module '"framework7-vue/bundle"' has no exported member 'registerComponents'

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

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

Đánh giá

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

Hướng nghiên cứu

Tái hiện thiết lập Vite TypeScript từ issue và kiểm tra src/main.ts cùng với khai báo framework7-vue.d.ts, trong đó registerComponents được báo cáo là bị thiếu. Xác nhận rằng import bundle được tài liệu hóa và định nghĩa kiểu của nó khớp nhau, sau đó xác minh rằng import không tạo ra lỗi TypeScript nào khi không có comment bỏ qua.

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

Mô tả

  • Framework7 version: 8.3.4
  • Vue.js version: 3.5.13
  • Platform and Target: [e.g. iOS 11 Cordova app, or Android 8 Chrome browser] Browser
  • Live Link or CodeSandbox: My own codesandbox based on my project - see src\main.ts
Describe the bug

A clear and concise description of what the bug is.

I created a clean Vue 3 project using vite, added Framework7 according to the docs - but it's giving me an import error, I checked the exported bundle and it seems registerComponents isn't exported - at least, not in the framework7-vue.d.ts as typing - which is giving errors in Typescript based projects.

To Reproduce

Steps to reproduce the behavior:

  1. Create a typescript based project with Vite
  2. Install Framework7-vue according to the docs
  3. See import error
Expected behavior

A clear and concise description of what you expected to happen.

No import error

Actual Behavior

Explain what is actually happening

Import error - needing to use comments to tell typescript to ignore the missing type

Screenshots

If applicable, add screenshots to help explain your problem.

Additional context

Add any other context about the problem here.

Can be circumvented by adding a comment like below:

// @ts-expect-error registerComponents is missing from the typescript definition
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.