Hacktoberfest 2026: as issues que os mantenedores marcaram para outubro, abertas e boas para iniciantes. Ver issues do Hacktoberfest

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

Fechada
#3,779 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 3 dias

Um pull request relacionado já foi integrado.

  • #3780 de @armando-navarro — integrado

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
55/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
angular, firebase, typescript
Domínio
cli, tooling

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

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].

Linguagem predominante
TypeScript
Estrelas
7.8k
Forks
2.2k
Merge médio
2d 14h
PRs com merge (30d)
19

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de angular/angularfire

Todas as issues de angular/angularfire

Issues semelhantes

Mais issues de TypeScript

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.