Title: Issue · GitHub
Open Graph Title: Issue · angular/angularfire
X Title: Issue · angular/angularfire
Description: Angular + Firebase = ❤️. Contribute to angular/angularfire development by creating an account on GitHub.
Open Graph Description: Angular + Firebase = ❤️. Contribute to angular/angularfire development by creating an account on GitHub.
X Description: Angular + Firebase = ❤️. Contribute to angular/angularfire development by creating an account on GitHub.
Opengraph URL: https://github.com/angular/angularfire
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"The `ANGULARFIRE2_VERSION` build placeholder ships unreplaced in the library, and `versions.json` never reaches the compiled schematics","articleBody":"### Version info\n\n**Angular:** 21.2.x **Firebase:** 12.x **AngularFire:** 21.0.0-rc.0\n\n### How to reproduce these conditions\n\n1. `npm pack @angular/fire@next` and inspect `fesm2022/angular-fire.mjs` — search for `ANGULARFIRE2_VERSION`.\n2. Or in an app: `import { VERSION } from '@angular/fire'; console.log(VERSION.full);`\n\n### Expected behavior\n\n`VERSION.full` (and the underlying `Version` object in `src/core.ts`) should report the real installed version, e.g. `21.0.0-rc.0`.\n\n### Actual behavior\n\n`VERSION` is constructed as `new Version('ANGULARFIRE2_VERSION')` - the build-time placeholder that's supposed to be replaced with the real version before publishing, but isn't for this occurrence. The published package ships the literal string.\n\nA related mechanism is also broken: `src/schematics/versions.json`'s `peerDependencies`/`firebaseFunctionsDependencies` data is filled in by `tools/build.ts` *after* the schematics are bundled with esbuild, which has already inlined the JSON import from the unfilled source file at compile time.\n- The post-build edit to `versions.json` on disk is never read by the shipped schematic code.\n- One concrete effect: `addDependencies()` in `src/schematics/common.ts` never has real version data to check against, so it can't detect or warn about conflicting dependency versions the way it appears designed to.\n\nWill need a decision on one of these approaches:\n- string-replace with a build-time guard, matching what PR #3709/#3711 just did for the schematics' own version placeholder, or\n- reworking the `versions.json` inlining - the fix touches `tools/build.ts` and possibly `src/core.ts`, so I wanted to flag it and get a read before picking a direction.\n","author":{"url":"https://github.com/armando-navarro","@type":"Person","name":"armando-navarro"},"datePublished":"2026-07-15T19:42:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/3715/angularfire/issues/3715"}
| route-pattern | /:user_id/:repository/issues/:id(.:format) |
| route-controller | issues |
| route-action | show |
| fetch-nonce | v2:f2b30e33-8bd7-a421-979d-f22d4c0a2ce2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8F30:2A7A96:159F346:1C841D6:6A5C6384 |
| html-safe-nonce | d0f335fcc71828b8950484acccbbadffcf380359cd32f464263d26900a492a9c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjMwOjJBN0E5NjoxNTlGMzQ2OjFDODQxRDY6NkE1QzYzODQiLCJ2aXNpdG9yX2lkIjoiOTE5NzY5NDIwNzI5Mjg5MjAzNiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6bb90774b966c63d9484356ec0eb58916d8a3c5596ad83cc4812fcc5abd837f8 |
| hovercard-subject-tag | repository:49453413 |
| 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/angular/angularfire/issues/3715 |
| twitter:image | https://repository-images.githubusercontent.com/49453413/70a83580-3a87-11eb-8603-8cb17dc94e05 |
| twitter:card | summary_large_image |
| og:image | https://repository-images.githubusercontent.com/49453413/70a83580-3a87-11eb-8603-8cb17dc94e05 |
| og:image:alt | Angular + Firebase = ❤️. Contribute to angular/angularfire development by creating an account on GitHub. |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 5290d7e14309ad1e76106a9c4237bd1041517e83ea182c8ab756752cb0c6940b |
| turbo-cache-control | no-cache |
| 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 | 9c975978430e9ad293956f2bbdaf153b1bd84a99 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width