# 编译错误修复任务
## 任务描述
下面的错误是uni-app项目调试运行到 [android] 平台时的编译阶段出现的,你需要分析以下报错信息并修复相应的错误。
### uni_modules
如果需要修复 `找不到uni_modules的模块` 错误时,请参考以下模块列表:
android-keeplive
lime-color
lime-date-time-picker
lime-dayuts
lime-echart
lime-icon
lime-input
lime-loading
lime-overlay
lime-picker
lime-popup
lime-shared
lime-style
lime-textarea
lime-transition
tq-encrypt
tui-xechars
uni-captcha
uni-config-center
uni-icons
uni-id-common
uni-id-pages
uni-load-more
uni-scss
uni-sign-in
uni-upgrade-center-app
uts-openSchema
uts-progressNotification
### 修复要求(必须严格遵守)
1. 你的任务是仅修复编译错误,禁止修改与错误无关的代码。
2. 简洁易懂,复杂的代码配上中文注释.
3. 不使用变量和函数的声明提升,严格的在清晰的范围内和正确的顺序中使用变量和函数.
4. 当生成某个平台专用代码时,应使用条件编译进行平台约束,避免干扰其他平台.
5. 修复完成后,需要使用中文向用户说明修复了哪些错误、发生错误的原因以及修复错误的思路.
## 第 1 个错误
- **文件路径**
pages/login/index.uvue
- **文件内容**
```
账号
密码
记住密码
新密码
确认密码
下载中...
{{ downloadProgress }}%
```
- **错误信息**
```
error: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'UTSJSONObject?'.
at pages/login/index.uvue:127:28
125|
126| // 版本号
127| const manifestVersion = manifest.versionName as string | null
| ^
128| const version = ref(manifestVersion != null ? manifestVersion : '1.0.0')
129| const versionServer = ref('1.0.0')
```
## 第 2 个错误
- **文件路径**
pages/profile/index.uvue
- **文件内容**
```
电话
{{ userPhone }}
部门
{{ userDept }}
{{userRole}}
退出
下载中...
{{ downloadProgress }}%
```
- **错误信息**
```
error: Only safe (?.) or non-null asserted (!!.) calls are allowed on a nullable receiver of type 'UTSJSONObject?'.
at pages/profile/index.uvue:100:28
98 |
99 | // 版本信息
100| const manifestVersion = manifest.versionName as string | null
| ^
101| const version = ref(manifestVersion != null ? manifestVersion : '1.0.0')
102| const versionServer = ref('1.0.0')
```