AngularFire 17.0.0 throwing errors with Angular 17.0.0
- Vorherrschende Sprache
- TypeScript
- Sterne
- 7.8k
- Forks
- 2.2k
- Ø Merge
- 22 Std. 28 Min.
- Gemergte PRs (30 T.)
- 6
Beschreibung
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](https://snipboard.io/wKpF23.jpg)
[Injection](https://snipboard.io/dHOni7.jpg)
### Expected behavior
Compiling and injecting correctly
### Actual behavior
Getting error when injecting
Beitragsleitfaden
Rechercherichtung
Reproduziere dies mit Angular 17.0.0, Firebase 10.7.1 und AngularFire 17.0.0. Beginne dann an der Injektionsstelle in src/app/shareable.service.ts und prüfe den im Bericht verlinkten AngularFire Developer Guide. Als abgeschlossen gilt, wenn identifiziert wurde, warum Firestore2 keinen Provider hat, und bestätigt wurde, dass die Anwendung kompiliert und den Service ohne den gemeldeten NullInjectorError injiziert.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- angular, typescript
- Bereich
- database, frontend
- Issue-Typ
- Bug
- Schwierigkeit
- 3/5
- Geschätzter Aufwand
- 1-2 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 35/100