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

ng-deploy's browserTarget and prerender's browserTarget do not match. Please check your angular.json

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

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
25/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
angular, firebase, typescript
领域
build-system, cli

调研方向

首先在 Angular 18 项目中使用 ng deploy 复现该故障,并检查 ng-deploy 和 prerender 使用的 angular.json 中的 browserTarget 值。将这些目标与报告的错误进行比较;当部署不再报告 browserTarget 不匹配时,即表示完成。

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

描述

Which @angular/* package(s) are the source of the bug?

Don't known / other

Is this a regression?

Yes

Description

I update my angular project with firebase to v18. When I run ng deploy, I get the below error. Reverting back to angular v17 fixed the error.

Please provide a link to a minimal reproduction of the bug

No response

Please provide the exception or error you saw
ng-deploy's browserTarget and prerender's browserTarget do not match. Please check your angular.json
Please provide the environment you discovered this bug in (run ng version)
Angular CLI: 18.0.4
Node: 20.9.0
Package Manager: npm 10.8.1
OS: darwin arm64

Angular: 18.0.3
... animations, cdk, common, compiler, compiler-cli, core, forms
... material, platform-browser, platform-browser-dynamic
... platform-server, router, service-worker

Package                         Version
---------------------------------------------------------
@angular-devkit/architect       0.1800.4
@angular-devkit/build-angular   18.0.4
@angular-devkit/core            18.0.4
@angular-devkit/schematics      18.0.4
@angular/cli                    18.0.4
@angular/fire                   18.0.1
@angular/ssr                    18.0.4
@schematics/angular             18.0.4
rxjs                            7.8.1
typescript                      5.4.5
zone.js                         0.14.7
Anything else?

No response

主要语言
TypeScript
星标
7.8k
派生
2.2k
平均合并
3 天 6 小时
30 天内合并 PR
5

贡献指南

打开贡献指南

从这里开始

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

angular/angularfire 的其他 Issue

查看 angular/angularfire 的全部 Issue

相似的 Issue

更多 TypeScript Issue

把新 issue 发到你的邮箱

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