Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Problem upgrading from 6.x to ~7.1.0-rc4 #2967

Answered by jamesdaniels
lucrus73 asked this question in Q&A
Discussion options

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?

You must be logged in to vote

Import from @angular/fire/compat/firestore

Replies: 1 comment 1 reply

Comment options

Import from @angular/fire/compat/firestore

You must be logged in to vote
1 reply
Comment options

Thanks, it works. Shouldn't it be documented here too?

Answer selected by lucrus73
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /