NativeScript / NativeScript/angular
Support Typescript 5
還沒有人認領這個 Issue。
- 主要語言
- TypeScript
- 星號
- 55
- 分支
- 13
- 平均合併
- 16 分鐘
- 30 天內合併 PR
- 1
描述
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
貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
執行 tns info 並檢查專案的 package.json,以確認 Angular 16、TypeScript 5 和 TSLib 2.5 版本。按照 NativeScript 文件中的說明使用自訂 activity 重現此失敗;完成標準是應用程式正常啟動,且可以使用自訂 activity,而不會出現所回報的 class-not-found 錯誤。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- angular, typescript
- 領域
- mobile-dev
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100