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 摘要。