Angularfire: Cannot find module 'angularfire2/firestore'.

Created on 16 Oct 2017  路  11Comments  路  Source: angular/angularfire

Version info

Angular: 4.4.5
Firebase: 4.5.2
AngularFire: 5.0.0-rc.3

After an npm install and ng serve I get an error "Cannot find module 'angularfire2/firestore' when I try to import {
AngularFirestore,
AngularFirestoreCollection
} from 'angularfire2/firestore';

Most helpful comment

@nakulkundra remove your angularfire2 npm package and
install [email protected]

All 11 comments

@Meistercoach83 Check your version of angularfire2 in the node_modules folder. Sometimes the package.json isn't accurate.

Hi,
my version in the folder: 5.0.0-rc.0-next

@Meistercoach83 Can you upgrade to the latest version and see if the error persists?

@davideast David, when you do an npm update it downgrades to [email protected], like V4 downgraded to rc0.

I recommend the "next" tag gets stripped of the npmjs package; it's a bit of a hassle currently.

That麓s true. When I change it to rc.3 it works!

@larssn I'll start doing that. It's frustrating for everyone.

Plz devs, add to 5.0.0-rc.5 angularfire2/firestore

Any Update on the issue.
please help , I am using Stackblitz.. and i am getting the same error ..

please check and guide ...
https://stackblitz.com/edit/angular-tpbntg?file=app%2Fhello.component.ts

@nakulkundra remove your angularfire2 npm package and
install [email protected]

I am seeing the same issue https://stackblitz.com/edit/angular-38ocpf?file=app/app.module.ts . This is forked from the stackblitz template provided

[email protected]

hello I do not know if it was already resolved but the package changed its location, when we installed with npm i angularfirebase2 says to changed its location to "@angular/fire", now it will only be necessary to find in that reference the folder "firestore"
Captura de Pantalla 2019-04-25 a la(s) 10 00 23

Was this page helpful?
0 / 5 - 0 ratings