I am new to Angular 4, so I am creating a firebase chat app with Angular 4, and then when I import some modules like this:
import { AngularFire, AuthProviders, AuthMethods,FirebaseListObservable } from 'angularfire2';
I get an error for each module that says
Has no exported member AngularFire, AuthProviders, AUthMethods, FirebaseListObservable.
Thank you
The solution that worked for me was to change this line
to
You can read more about it here https://github.com/angular/angularfire2/blob/master/CHANGELOG.md
UP TO DATE(Ver 5.0.0-rc3):
While getting this error, this means you are using old Database API. This can solved by importing
FirebaseListObservable
from depracated module(See also @Ashish Jha answer):It's recommended to use the latest API since AngularFire 5.0 brings new API for the Realtime Database. Refer upgrade guide.
ORIGINAL ANSWER: AngularFire2 has separate its modules since 4.0.0+.
you can import those two module if you want use auth of angularfire2, see their change log :
and import
Auth
andObservable
(AuthMethods can be found in AngularFireAuth) type by: