-
Notifications
You must be signed in to change notification settings - Fork 2.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase v11 support #3573
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
Is there any support for this project? |
@JGSolutions "support" is a loaded term, we are not a supported product as it related to the Google Cloud terms of service—but there are people working on the library. AngularFire v18 is not compatible with Firebase v11, we need better error messaging in the JS SDK but the odd error messages that you are seeing here is because your environment has multiple conflicting versions of Firebase installed. AngularFire v19 will support Firebase v11 and Angular v19, we just released v19.0.0-rc.2. |
Ok thanks for the help. Maybe support was the wrong word to use. i was able to comile and start the server when i run the app i get this: app.routes.ts:49 ERROR RuntimeError: NG0203: inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with i think this something on my side which I am looking into |
@JGSolutions no worries. Yeah, that's the error that caused us a lot of grief in our test suite. It turns out that the rxjs-interopt pipe we're using in our methods to make them SSR safe requires an injection context. So you can used it outside of a component or provider factory. If it's in a test you can wrap in TestBed.provideInjectionContext FWIW Because that was a forcing function we're now reshuffling a lot of our stuff to use inject() internally rather than rely on constructor injection. Sorry that seems to be making for a rougher upgrade 😞 |
@jamesdaniels As long you guys are aware of the problem and you guys are on it, all good with me. Thanks again |
@JGSolutions our zone wrappers will now noop when outside of an injector context, cutting |
@jamesdaniels Still happening but seems at a different line number: at run (angular-fire.mjs:115:10) chunk-DZ7BV6I4.js?v=05488ea1:59 ERROR RuntimeError: NG0203: inject() must be called from an injection context such as a constructor, a factory function, a field initializer, or a function used with |
yeah I caught that one earlier today, addressing in #3590 |
Rc.4 out. |
@jamesdaniels Amazing it works! |
can i push this to prod or should i wait? |
I don't foresee any large changes in the next two weeks, if you're seeing good behavior in local prod mode go for it. Just be ready to roll back incase of issues. I'll continue to release RCs as feedback comes in but we're in freeze right now, so I won't release stable until after the new year. |
Hi, when upgrading from firebase-js-sdk 10.x to firebase-js-sdk 11.0.0 we get the following error.
Even though as you can see, we did call initializeApp() first.
The text was updated successfully, but these errors were encountered: