Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Error occurred during the `generateExampleApp` stage.

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

@RezoanurRahman 已经在做这个了。

开始于 2026年10月15日。

  • #959 来自 @RezoanurRahman —— 未关闭

评估

难度
1/5
预计耗时
1 小时以内
新手友好度
78/100
Issue 类型
缺陷
描述清晰度
描述清楚
活跃度
活跃
技术栈
javascript, react-native
领域
cli, tooling

调研方向

npx @react-native-community/cli 命令在 packages/create-react-native-library/src/exampleApp/generateExampleApp.ts 中构建,issue 链接的位置大约在第 144 行。阅读该命令是如何拼装的,以及示例应用是在哪里生成的。完成的标准是:命令使用 @react-native-community/cli@latest 或固定版本,并且在清空缓存的情况下运行生成器确认改动有效。版本选择请先与维护者确认他们的偏好。

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

描述

bug
Description

When running generateExampleApp, an error may occur because npx @react-native-community/cli did not include @latest or specify a specific version, potentially using an older version's local cache.

We should change @react-native-community/cli to @react-native-community/cli@latest or specify a version:
https://github.com/callstack/react-native-builder-bob/blob/13309bc9da7d3d413d7cc171e230d36c32f3bbe3/packages/create-react-native-library/src/exampleApp/generateExampleApp.ts#L144

Packages
  • create-react-native-library
  • react-native-builder-bob
Selected options
✔ What do you want to name the npm package?
│ test
│
✔ How would you describe the package?
│ test
│
✔ What is the name of the package author?
│ -
│
✔ What is the email address of the package author?
│ -
│
✔ What is the profile URL for the package author?
│ -
│
✔ What is the repository URL for the package?
│ -
│
✔ What type of library do you want to develop?
│ Turbo module
│
✔ Which language do you want to use for native code?
│ Kotlin & Objective-C
│
✔ What type of example app do you want to create?
│ App with Community CLI
│
✔ Which tools do you want to configure?
│ ESLint with Prettier
Link to repro

N/A

Environment

Windows 10

主要语言
JavaScript
星标
3.2k
派生
229
平均合并
2 天 15 小时
30 天内合并 PR
5

环境准备

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

从这里开始

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

callstack/react-native-builder-bob 的其他 Issue

查看 callstack/react-native-builder-bob 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 发到你的邮箱

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