已合并
fix: 将社区版本配置为 peerDependencies 解决 TS 类型检查报错。 #63
fix: 将社区版本配置为 peerDependencies 解决 TS 类型检查报错。 #63
已合并
zhoukc42创建于 23 天前
zhoukc42
zhoukc42
23 天前

fix: 将社区版本配置为 peerDependencies 解决 TS 类型检查报错。

likedislike
Pull Request已成功合入, 合并人@openharmony_ci
(感谢 zhoukc42 的贡献)
openharmony_ci
openharmony_ci成员
23 天前 评论:

感谢提交 Pull Requests!
Thanks for submitting a pull request.

likedislike
openharmony_ciopenharmony_ci成员
23 天前 添加了label:dco检查成功
zhoukc42zhoukc42
23 天前 关联了issue:72-将社区版本配置为 peerDependencies 解决 TS 类型检查报错。
zhoukc42
zhoukc42
23 天前 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
23 天前 评论:

首次触发
门禁构建开始,包含静态检查、代码编译【rntpc_br_rnoh0.72编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6a99193e64650f998b43c0b4/runlist

likedislike
cpf-manager
cpf-manager23 天前进行代码检视2
package.json
@@ -42,2 +42,3 @@
4242 "react": "*",
43- "react-native": "*"
43+ "react-native": "*",
44+ "react-native-linear-gradient": "3.0.0-alpha.1"
cpf-manager
cpf-manager23 天前评论:

【AI-Review】【严重】【基础代码问题】【代码逻辑错误】peerDependencies 精确锁定预发布版本,导致安装冲突

● 问题:第44行新增的 peerDependency "react-native-linear-gradient": "3.0.0-alpha.1" 使用精确版本号(无 ^/~/>= 前缀),且为预发布版本(alpha)。经查询 npm registry,react-native-linear-gradient 已发布更新的预发布版本 3.0.0-beta.0/3.0.0-beta.1/3.0.0-beta.2(next dist-tag 即指向 3.0.0-beta.2)。npm v7+ 默认严格校验 peerDependencies,若消费者项目已安装上述任一较新版本,npm install 会抛出 ERESOLVE could not resolve 错误导致安装失败。本仓库 example/package.json 的 dependencies 中即未声明 react-native-linear-gradient,其 fast-install-project 脚本只能依赖 --legacy-peer-deps 绕过校验。同文件中 react、react-native 均使用 "*",本条精确锁定与既有约定不一致。

● 影响:严重。消费者若使用 react-native-linear-gradient@3.0.0-beta.2 或未来稳定版 3.0.0,无法与 @react-native-ohos/react-native-linear-gradient@3.0.3-rc.2 共存,必须降级到 3.0.0-alpha.1 或使用 --legacy-peer-deps/overrides 绕过,显著增加集成成本。

● 建议:将版本改为范围形式,例如 "react-native-linear-gradient": ">=3.0.0-alpha.1",以兼容后续预发布与稳定版本;或采用 "^3.0.0-alpha.1" 以在兼容后续 3.x 预发布的同时匹配未来 3.x 稳定版。

likedislike
zhoukc42
zhoukc42
23 天前 评论:

开始鸿蒙化时依赖的版本,此处修改是为解决TypeScript语法检查,编译运行时会指向鸿蒙化库,已测试运行无问题。

openharmony_ciopenharmony_ci成员
23 天前 添加了label:编译成功
openharmony_ciopenharmony_ci成员
23 天前 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
23 天前 通过测试
openharmony_ci
openharmony_ci成员
23 天前 评论:

代码门禁通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6a99193e64650f998b43c0b4/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result package
1 rntpc_br_rnoh0.72 success >>>

likedislike
Hhuang_jy成员
22 天前 通过审查
Hhuang_jy成员
22 天前 解决了最后一个问题
openharmony_ci
openharmony_ci成员
22 天前 评论:

验证结果已超过12小时,之前验证结果无效,自动重新触发构建,请关注最新验证结果

likedislike
openharmony_ci
openharmony_ci成员
22 天前 评论:

start build

likedislike
openharmony_ciopenharmony_ci成员
22 天前 删除了label:编译成功
openharmony_ciopenharmony_ci成员
22 天前 删除了label:静态检查成功
openharmony_ci
openharmony_ci成员
22 天前 评论:

上次构建已超过12小时,重新全量验证,重置所有关联PR的验证状态
门禁构建开始,包含静态检查、代码编译【rntpc_br_rnoh0.72编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6a9a1c5e64650f998b941ba9/runlist

likedislike
openharmony_ciopenharmony_ci成员
22 天前 添加了label:编译成功
openharmony_ciopenharmony_ci成员
22 天前 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
22 天前 通过测试
openharmony_ci
openharmony_ci成员
22 天前 评论:

代码门禁通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6a9a1c5e64650f998b941ba9/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result package
1 rntpc_br_rnoh0.72 success >>>

likedislike
openharmony_ciopenharmony_ci成员
22 天前 关闭了关联的issue
openharmony_ciopenharmony_ci成员
22 天前 合入了pull request,合并节点 SHA:509608ecdf31528e21d8e8c8d7b6c464de4d6ad0