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

@ngx-env/builder:application is not a recognized builder

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

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
35/100
Issue 类型
缺陷
描述清晰度
基本清楚
活跃度
停滞
技术栈
angular, firebase, typescript

调研方向

从 angular.json 配置开始,使用 issue 中列出的版本通过 ng deploy 重现报告的失败。比较在 AngularFire/Firebase Hosting 部署期间如何解析 @ngx-env/builder:application;当报告的项目能够部署且不再出现 unrecognized-builder 错误时,即表示完成。

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

描述

Version info

Angular:
"@angular/core": "^17.1.0"

Firebase:
$ firebase --version
13.0.3

AngularFire:
"@angular/fire": "^17.0.1"

Other (e.g. Ionic/Cordova, Node, browser, operating system):

$ uname -a
Linux codespaces-9f3720 6.2.0-1018-azure #18~22.04.1-Ubuntu SMP Tue Nov 21 19:25:02 UTC 2023 x86_64 GNU/Linux
$ npm --version
10.2.3
$ node --version
v20.10.0
How to reproduce these conditions

Followed the guide to setup AngularFire + added @ngx-env/builder: https://github.com/erikologic/angularski/tree/just-added-ngx-env

Debug output
 $ ng deploy
Using firebase-tools version 13.0.3
Logged into Firebase as *****@gmail.com.
📦 Building "angularski"
---------------------------------
- Working directory:  /workspaces/angularski
- Files: .env
- Environment: production
- Environment files: 
 ✔ /workspaces/angularski/.env
- Environment variables: NG_APP 
 ✔ NG_APP_FIREBASE_API_KEY
---------------------------------


Initial Chunk Files   | Names         |  Raw Size | Estimated Transfer Size
main-6VJN4HE4.js      | main          | 508.08 kB |               135.24 kB
polyfills-RX4V3J3S.js | polyfills     |  33.01 kB |                10.68 kB
styles-5INURTSO.css   | styles        |   0 bytes |                 0 bytes

                      | Initial Total | 541.09 kB |               145.92 kB

Application bundle generation complete. [13.683 seconds]
▲ [WARNING] bundle initial exceeded maximum budget. Budget 500.00 kB was not met by 41.09 kB with a total of 541.09 kB.


No Firebase app associated with site angularski, injecting project default config.
  You can link a Web app to a Hosting site here https://console.firebase.google.com/project/angularski/settings/general/web
The CJS build of Vite's Node API is deprecated. See https://vitejs.dev/guide/troubleshooting.html#vite-cjs-node-api-deprecated for more details.

   Thank you for trying our early preview of Angular support on Firebase Hosting.
   During the preview, support is best-effort and breaking changes can be expected. Proceed with caution.

   Documentation: https://firebase.google.com/docs/hosting/frameworks/angular
   File a bug: https://github.com/firebase/firebase-tools/issues/new?template=bug_report.md
   Submit a feature request: https://github.com/firebase/firebase-tools/issues/new?template=feature_request.md

   We'd love to learn from you. Express your interest in helping us shape the future of Firebase Hosting: https://goo.gle/41enW5X

Error when trying to deploy: 
@ngx-env/builder:application (angularski:build:production) is not a recognized builder. Please check your angular.json
Expected behavior

Deploy

Actual behavior

Failed to deploy

主要语言
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 摘要。