-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Problem upgrading from 6.x to ~7.1.0-rc4 #2967
-
I'm trying to upgrade my app dependencies and my code, because I need this commit, so I edited my package.json and specified:
"@angular/fire": "~7.1.0-rc.4",
"firebase": "^9.0.0",
then I changed my imports from:
import { AngularFirestore } from '@angular/fire';
to
import { AngularFirestore } from '@angular/fire/compat';
My app is a Ionic5/Angular12 app, so I assume it uses Ivy by default. Looking here seems to me I've done everything that was needed to upgrade.
However I get the following compilation error:
Module '"@angular/fire/compat"' has no exported member 'AngularFirestore'.ts(2305)
import AngularFirestore
What am I missing?
Beta Was this translation helpful? Give feedback.
All reactions
Import from @angular/fire/compat/firestore
Replies: 1 comment 1 reply
-
Import from @angular/fire/compat/firestore
Beta Was this translation helpful? Give feedback.
All reactions
-
Thanks, it works. Shouldn't it be documented here too?
Beta Was this translation helpful? Give feedback.