Module '"framework7-vue/bundle"' has no exported member 'registerComponents'
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:
- Create a typescript based project with Vite
- Install Framework7-vue according to the docs
- 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
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của framework7io/framework7
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
framework7io/framework7#4365 · 1 bình luận ·
-
propsHistory Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
framework7io/framework7#4347 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 64/100
framework7io/framework7#4222 · 3 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
framework7io/framework7#4175 · 1 bình luận ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
framework7io/framework7#3969 · 3 bình luận ·
Tất cả issue của framework7io/framework7
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
TheOdinProject/curriculum#31423 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
WGBH-MLA/dream-aapb#69 ·
-
Độ khó 1/5 1-3 giờ Mức phù hợp với người mới 78/100
Mintplex-Labs/anything-llm#6490 ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
openlayers/ol-cesium#1364 ·