Angular firebase member not exported

0

How are you?

I'm new to angular and I'm following a YouTube tutorial and everything was fine until it started with Firebase (which I did not know). Total that has commented that it should follow the documentation of angular firebase 2.

( link )

In one of the steps says that you have to import

import { AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database';

Well after adding that import it gives me an error when running ng serve

ERROR in C:/Users/Guile/angular-app/src/app/app.component.ts (2,31): Module '"C: 
/Users/Guile/angular-app/node_modules/angularfire2/database/index"'
has no exported member 'FirebaseListObservable'.

You know what this error can be. I have commented on that error in the YouTube tutorial, to see if anyone tells me that this may be the case.

    
asked by Guillermo Puertas Castillon 30.10.2017 в 22:14
source

1 answer

1

In the end I found the solution: I had to import FirebaseListObservable in my file.

I did it by putting this line:

import { AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database-deprecated';
    
answered by 31.10.2017 в 17:49