The @react-native-harness/metro patch hasn't been applied since the monorepo move

未关闭 适合新手
#376 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
2/5
预计耗时
1-3 小时
新手友好度
65/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
node.js, react-native, typescript

调研方向

从根目录的 package.json 和 patches/@react-native-harness+metro+1.0.0-alpha.23.patch 开始;然后检查 example/package.json 的 postinstall 以及 Harness 脚本(pnpm harness:ios、pnpm harness:android),看看是否执行了 withRnHarness。运行一个 Harness 命令,测试该 patch 是否仍然需要。完成意味着要么通过根目录的 patchedDependencies 应用该 patch 并移除 patch-package,要么 patch 和 patch-package 设置都被删除。

由索引模型根据 Issue 内容生成。

描述

patches/@react-native-harness+metro+1.0.0-alpha.23.patch comments out blockList: undefined in withRnHarness, with the note "This is needed for the example app to work." It came in with Harness in #31, when the example app was the repository root. #110 then moved the app to example/ and the patch to the root patches/. Since then, the example's postinstall (patch-package) runs from example/ and finds no patches there ("No patch files found"), so the patch is never applied.

The example app's own Metro config doesn't use withRnHarness, and the app builds and runs without the patch. So it can only matter for the Harness test runs (pnpm harness:ios, pnpm harness:android), which CI doesn't run. There are two ways to resolve it:

  • If those runs still need the patch, apply it the pnpm way, with patchedDependencies in the root package.json, and drop patch-package.
  • If they don't, delete the patch and the patch-package setup.
主要语言
TypeScript
星标
864
派生
51
平均合并
2 天 2 小时
30 天内合并 PR
10

环境准备

  • 没有 Dockerfile 或 Docker Compose 文件
  • 没有 Pull Request 模板
  • 阅读贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

callstackincubator/voltra 的其他 Issue

查看 callstackincubator/voltra 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。