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

`ng add @angular/fire@canary` installs the release candidate instead of the canary build

已关闭
#3,779 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 3 天内回复

已经有一个关联 PR 被合并了。

  • #3780 来自 @armando-navarro —— 已合并

评估

难度
3/5
预计耗时
1-2 天
新手友好度
55/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
活跃
技术栈
angular, firebase, typescript
领域
cli, tooling

调研方向

Start by reproducing ng add @angular/fire@canary and comparing it with npm install @angular/fire@canary; trace how the ng add setup resolves the dist-tag and saves the dependency. Done means the command installs the canary build and preserves a version constraint that does not later resolve to the release candidate or stable release.

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

描述

comp: build/pipeline type: bug version: current (v17+)

ng add @angular/fire@canary looks up the canary tag, then installs and saves the range ^<that version>, and npm installs the highest version in that range. Since #3767 every canary is named 21.0.0-canary.*, which ranks below 21.0.0-rc.1, so the command installs the release candidate. The ng add setup step then saves 21.0.0-rc.1 as an exact version.

Details
  • Today: ng add @angular/fire@canary on an Angular 21 app installs 21.0.0-rc.1 and saves it exactly.
  • After 21.0.0 ships: canaries are still named 21.0.0-canary.*, which rank below 21.0.0, so the same command installs 21.0.0.
  • npm install @angular/fire@canary installs the canary but saves ^<canary>, so a later install without the lockfile moves to the release candidate.
Workaround

Pass the exact canary version, from npm view @angular/fire@canary version, to ng add, for example ng add @angular/[email protected].

主要语言
TypeScript
星标
7.8k
派生
2.2k
平均合并
2 天 14 小时
30 天内合并 PR
19

环境准备

从这里开始

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

angular/angularfire 的其他 Issue

查看 angular/angularfire 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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