Title: The generated Cloud Functions manifest omits `firebase-admin`, so the deployed function crashes wherever peers are not auto-installed · Issue #3744 · angular/angularfire · GitHub
Open Graph Title: The generated Cloud Functions manifest omits `firebase-admin`, so the deployed function crashes wherever peers are not auto-installed · Issue #3744 · angular/angularfire
X Title: The generated Cloud Functions manifest omits `firebase-admin`, so the deployed function crashes wherever peers are not auto-installed · Issue #3744 · angular/angularfire
Description: Version info Angular: any supported by current AngularFire AngularFire: 21.0.0-rc.0 (the current npm next) and main. The rc.0 tarball's shipped schematics/versions.json carries firebase-admin with no version field at all How to reproduce...
Open Graph Description: Version info Angular: any supported by current AngularFire AngularFire: 21.0.0-rc.0 (the current npm next) and main. The rc.0 tarball's shipped schematics/versions.json carries firebase-admin with ...
X Description: Version info Angular: any supported by current AngularFire AngularFire: 21.0.0-rc.0 (the current npm next) and main. The rc.0 tarball's shipped schematics/versions.json carries firebase-admin w...
Opengraph URL: https://github.com/angular/angularfire/issues/3744
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The generated Cloud Functions manifest omits `firebase-admin`, so the deployed function crashes wherever peers are not auto-installed","articleBody":"### Version info\n\n**Angular:** any supported by current AngularFire\n\n**AngularFire:** 21.0.0-rc.0 (the current npm `next`) and `main`. The rc.0 tarball's shipped `schematics/versions.json` carries `firebase-admin` with no version field at all\n\n### How to reproduce these conditions\n\n`ng deploy` with SSR writes a `package.json` for the Cloud Function it deploys, with dependency versions resolved from `src/schematics/versions.json` at build time. The root `package.json` has no `firebase-admin` entry, so the build resolves its version to `undefined` and `JSON.stringify` silently drops it. The generated manifest declares `firebase-functions` alone.\n\nThat is not enough to run:\n\n- firebase-functions 6.x declares `firebase-admin` as a required, non-optional peer, and requires it eagerly at module load.\n- Plain `npm install` auto-installs the missing peer and hides the problem.\n- `npm install --legacy-peer-deps` does not. Installing the generated manifest that way and loading the function's entry points:\n\n ```\n require('firebase-functions/v2/https') -> Cannot find module 'firebase-admin/app-check'\n require('firebase-functions/v1') -> Cannot find module 'firebase-admin/auth'\n ```\n\n `--legacy-peer-deps` is exactly what users troubleshooting ERESOLVE errors reach for.\n\n### Expected behavior\n\nThe generated manifest declares every package the function needs at cold start.\n\n### Actual behavior\n\nThe function deploys and then crashes on its first request wherever the install did not auto-provide the peer.\n\nRelated: #3742 (the sibling runtime defects in the same generated function).\n","author":{"url":"https://github.com/armando-navarro","@type":"Person","name":"armando-navarro"},"datePublished":"2026-08-11T20:12:32Z","url":"https://github.com/angular/angularfire/issues/3744"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3e1b53f6-c3f3-05a4-663e-61986b44a59e |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CA48:62524:2C3E6:3A527:6B036827 |
| html-safe-nonce | 96a26f9e8ff21837d88c683511372dfb94190aef941e3c23a69353cbc5465626 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQTQ4OjYyNTI0OjJDM0U2OjNBNTI3OjZCMDM2ODI3IiwidmlzaXRvcl9pZCI6Ijg4NjkzNTUxNTQ1MDQzNzg0MDciLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | fead1e3dc32f94b8d32cfc32ccfd46bb523333994bf31243b165099505fd002a |
| hovercard-subject-tag | issue:5124175936 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angularfire/3744/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3c7871038f90a256535ec5b4accf0878433863c57ba0984e196f2fd4d599ffed/angular/angularfire/issues/3744 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3c7871038f90a256535ec5b4accf0878433863c57ba0984e196f2fd4d599ffed/angular/angularfire/issues/3744 |
| og:image:alt | Version info Angular: any supported by current AngularFire AngularFire: 21.0.0-rc.0 (the current npm next) and main. The rc.0 tarball's shipped schematics/versions.json carries firebase-admin with ... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | armando-navarro |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angularfire git https://github.com/angular/angularfire.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 49453413 |
| octolytics-dimension-repository_nwo | angular/angularfire |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49453413 |
| octolytics-dimension-repository_network_root_nwo | angular/angularfire |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width