angular / angularfire

Angular + Firebase = ❤️
https://firebaseopensource.com/projects/angular/angularfire2
MIT License
7.64k stars 2.2k forks source link

AngularFire 17.0.0 throwing errors with Angular 17.0.0 #3493

Open ecancil opened 6 months ago

ecancil commented 6 months ago

I have recently upgraded to the newest angularfire 17.0.0 and am having trouble getting some fairly straight forward things working. Filled out the template below. Thanks for your help.

Version info

Angular: 17.0.0

Firebase: 10.7.1

AngularFire: 17.0.0

Steps to set up and reproduce

Sample data and security rules

Debug output

Errors in the JavaScript console

Internal server error: R3InjectorError(Standalone[_AppComponent])[_ShareableService -> _ShareableService -> Firestore2 -> Firestore2]: NullInjectorError: No provider for Firestore2! at NullInjector.get (c:/Users/ecanc/OneDrive/Documents/CaloKiwi/public/card/node_modules/@angular/core/fesm2022/core.mjs:5467:21) at R3Injector.get (c:/Users/ecanc/OneDrive/Documents/CaloKiwi/public/card/node_modules/@angular/core/fesm2022/core.mjs:5918:27) at R3Injector.get (c:/Users/ecanc/OneDrive/Documents/CaloKiwi/public/card/node_modules/@angular/core/fesm2022/core.mjs:5918:27) at injectInjectorOnly (c:/Users/ecanc/OneDrive/Documents/CaloKiwi/public/card/node_modules/@angular/core/fesm2022/core.mjs:910:36) at Module.ɵɵinject (c:/Users/ecanc/OneDrive/Documents/CaloKiwi/public/card/node_modules/@angular/core/fesm2022/core.mjs:916:40) at Object.ShareableService_Factory (c:/Users/ecanc/OneDrive/Documents/CaloKiwi/public/card/src/app/shareable.service.ts:7:30) at eval (c:/Users/ecanc/OneDrive/Documents/CaloKiwi/public/card/node_modules/@angular/core/fesm2022/core.mjs:6030:33) at runInInjectorProfilerContext (c:/Users/ecanc/OneDrive/Documents/CaloKiwi/public/card/node_modules/@angular/core/fesm2022/core.mjs:871:5) at R3Injector.hydrate (c:/Users/ecanc/OneDrive/Documents/CaloKiwi/public/card/node_modules/@angular/core/fesm2022/core.mjs:6029:9) at R3Injector.get (c:/Users/ecanc/OneDrive/Documents/CaloKiwi/public/card/node_modules/@angular/core/fesm2022/core.mjs:5909:23) (x2)

Screenshots

Error Injection

Expected behavior

Compiling and injecting correctly

Actual behavior

Getting error when injecting

google-oss-bot commented 6 months ago

This issue does not seem to follow the issue template. Make sure you provide all the required information.

aprilrjwilliams commented 4 months ago

Having the same issue - did you find a solution?

aprilrjwilliams commented 4 months ago

@ecancil