Support Typescript 5
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
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Cần làm rõ
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- angular, typescript
- Lĩnh vực
- mobile-dev
Hướng nghiên cứu
Chạy tns info và kiểm tra package.json của dự án để xác nhận các phiên bản Angular 16, TypeScript 5 và TSLib 2.5. Tái hiện lỗi bằng cách sử dụng một activity tùy chỉnh như được mô tả trong tài liệu NativeScript; hoàn tất khi ứng dụng khởi động bình thường và activity tùy chỉnh có thể được sử dụng mà không gặp lỗi class-not-found đã nêu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Environment
Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):
- NativeScript-Angular: 16
- Angular: 16
Describe the bug
Using Angular 16 which uses Typescript 5 and updated TSLib renders custom activities unusable and does not allow the app to start. Refer to this chat
https://discord.com/channels/603595811204366337/606457628729671691/1108803693844901968
System.err: An uncaught Exception occurred on "main" thread.
System.err: Unable to create application com.tns.NativeScriptApplication: com.tns.NativeScriptException: Error calling module function
System.err: Error: com.tns.system.classes.loading.LookedUpClassNotFound: Class "com.companymfg.activity" not found.
System.err: File: (file: src\webpack:\inventory\webpack\bootstrap:27:0)
System.err:
System.err: StackTrace:
System.err: (/data/data/com.companymfg.inventory/files/internal/ts_helpers.js:154:26)
System.err: at __esDecorate(file: src\webpack:\inventory\node_modules\tslib\tslib.es6.js:77:0)
System.err: at (file:///data/data/com.companymfg.inventory/files/app/bundle.js:741:9)
System.err: at (file:///data/data/com.companymfg.inventory/files/app/bundle.js:744:7)
System.err: at ./src/activity.android.ts(file:///data/data/com.companymfg.inventory/files/app/bundle.js:746:2)
System.err: at __webpack_require__(file: src\webpack:\inventory\webpack\bootstrap:24:0)
System.err: at __webpack_exec__(file:///data/data/com.companymfg.inventory/files/app/bundle.js:71277:39)
System.err: at (file:///data/data/com.companymfg.inventory/files/app/bundle.js:71278:224)
System.err: at __webpack_require__.X(file: src\webpack:\inventory\webpack\runtime\startup entrypoint:6:0)
System.err: at (file:///data/data/com.companymfg.inventory/files/app/bundle.js:71278:47)
System.err: at (file:///data/data/com.companymfg.inventory/files/app/bundle.js:71283:3)
System.err: at require(:1:266)
To Reproduce
Update Typescript to 5, TSLib 2.5, Angular 16. Use custom activity as stated in Nativescript Docs
Expected behavior
App to run normally
Sample project
Additional context
- Ngôn ngữ chính
- TypeScript
- Star
- 55
- Fork
- 13
- Merge trung bình
- 16 phút
- Pull request đã merge (30 ngày)
- 1
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 NativeScript/angular
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
NativeScript/angular#170 · 1 bình luận ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 35/100
NativeScript/angular#164 ·
-
My types are gone Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
NativeScript/angular#163 · 1 bình luận ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 38/100
NativeScript/angular#158 · 1 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
NativeScript/angular#155 ·
Tất cả issue của NativeScript/angular
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
0xMiden/bridge-portal#132 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
-
area:tools bug good first issue help wanted priority:P2
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 90/100
TaewoooPark/Motifcode#14 ·
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
newrelic-experimental/preflight#793 · 1 bình luận ·