Title: `@angular/fire/ai` fails to build against firebase 12.18, which removed `getImagenModel` · Issue #3749 · angular/angularfire · GitHub
Open Graph Title: `@angular/fire/ai` fails to build against firebase 12.18, which removed `getImagenModel` · Issue #3749 · angular/angularfire
X Title: `@angular/fire/ai` fails to build against firebase 12.18, which removed `getImagenModel` · Issue #3749 · angular/angularfire
Description: Description @angular/fire/ai imports getImagenModel from firebase/ai and re-exports it zone-wrapped. That import no longer resolves on a fresh install: Firebase shut the Imagen models down in August 2026, and @firebase/ai 2.15.0 removed ...
Open Graph Description: Description @angular/fire/ai imports getImagenModel from firebase/ai and re-exports it zone-wrapped. That import no longer resolves on a fresh install: Firebase shut the Imagen models down in Augus...
X Description: Description @angular/fire/ai imports getImagenModel from firebase/ai and re-exports it zone-wrapped. That import no longer resolves on a fresh install: Firebase shut the Imagen models down in Augus...
Opengraph URL: https://github.com/angular/angularfire/issues/3749
X: @github
Domain: github.com
IPv4 address: 140.82.112.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`@angular/fire/ai` fails to build against firebase 12.18, which removed `getImagenModel`","articleBody":"### Description\n\n`@angular/fire/ai` imports `getImagenModel` from `firebase/ai` and re-exports it zone-wrapped. That import no longer resolves on a fresh install:\n\n- Firebase shut the Imagen models down in August 2026, and `@firebase/ai` 2.15.0 removed the API.\n- firebase 12.18.0, the current npm `latest`, ships `@firebase/ai` 2.15.0.\n- `@angular/fire` declares `firebase: \"^12.4.0\"` as a regular dependency, so every fresh install resolves 12.18.0, and the shipped bundle imports an export that does not exist.\n\n### Impact\n\n- A fresh app that installs `@angular/fire` and builds anything touching the AI entry point fails at build time with `TS2305: Module '\"firebase/ai\"' has no exported member 'getImagenModel'`, or the equivalent bundler resolution error.\n- Nothing the user wrote is at fault, and pinning an older firebase only trades the build error for runtime calls to a shut-down service.\n\n### Versions\n\nVerified against `@angular/fire` main at `fb6796b` with firebase 12.18.0. The export exists through firebase 12.17.x and is gone at 12.18.0.\n\n### Expected behavior\n\nThe published entry points build against every firebase version the declared `^12.4.0` range resolves.\n","author":{"url":"https://github.com/armando-navarro","@type":"Person","name":"armando-navarro"},"datePublished":"2026-08-21T00:21:07Z","url":"https://github.com/angular/angularfire/issues/3749"}
| 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:656962d3-74d8-a2e7-f93a-fd4e42b908c2 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 9D1C:3DCCC3:3283E0C:42E1FBF:6B036012 |
| html-safe-nonce | c7a9138ca3e7d71342d43449eba00cfaa14894db936063cc60cf9816a877712b |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RDFDOjNEQ0NDMzozMjgzRTBDOjQyRTFGQkY6NkIwMzYwMTIiLCJ2aXNpdG9yX2lkIjoiMTQ1MDA1MjA5ODQ2ODMwNjk2MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | d57aa16aeda87d85e373c3e3d1d306180a7881facbfd807d6894dc28bab0837b |
| hovercard-subject-tag | issue:5209071323 |
| 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/3749/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b2a6276eacaa30024e35706031b750f2dca60495d135c37af09acb6b7ea861b5/angular/angularfire/issues/3749 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b2a6276eacaa30024e35706031b750f2dca60495d135c37af09acb6b7ea861b5/angular/angularfire/issues/3749 |
| og:image:alt | Description @angular/fire/ai imports getImagenModel from firebase/ai and re-exports it zone-wrapped. That import no longer resolves on a fresh install: Firebase shut the Imagen models down in Augus... |
| 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