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