NativeScript / NativeScript/angular
Support Typescript 5
まだ誰も着手していません。
- 主要言語
- TypeScript
- スター
- 55
- フォーク
- 13
- 平均マージ
- 16分
- マージ済み PR(30日)
- 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 にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
調査の方向性
tns info を実行し、プロジェクトの package.json を確認して、Angular 16、TypeScript 5、TSLib 2.5 のバージョンを確認します。NativeScript のドキュメントに記載されているカスタムアクティビティを使用して失敗を再現します。完了条件は、アプリが正常に起動し、報告されている class-not-found エラーなしでカスタムアクティビティを使用できることです。
索引モデルが issue の本文から書いたものです。
評価
- 技術スタック
- angular, typescript
- 領域
- mobile-dev
- issue の種類
- バグ
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 活発さ
- 停滞
- 明瞭さ
- 説明が足りない
- 初心者へのやさしさ
- 25/100