Open anonnoisy opened 6 years ago
Hello i have the same error, how can I fix it ?
same :/
Same here, please help
I had the same issue but it's solved now:
change
getMessages in chat.service.ts to be like this
getMessages():FirebaseListObservable<ChatMessage[]>{ return this.db.list('Messages', { query :{ limitToLast:25, orderByKey:true } }); }
import {AngularFireDatabaseModule} from
'angularfire2/database'; //to be like this
import {AngularFireDatabaseModule} from 'angularfire2/database-deprecated';
Hi @anonnoisy, @anthony-coplo, @JBuckGuy, @sameeranihathe Look at this https://github.com/wesdoyle/base-chat/issues/10#issuecomment-459274318
AngularFire has moved, we're now @angular/fire you have to use '@angular/fire/database-deprecated' in place of 'angularfire2/database-deprecated' or 'angularfire2/database' This worked for me.
getMessages(): FirebaseListObservable<ChatMessage[]> { // query to create our message feed binding return this.db.list('message',{ query: { limitToLast: 20, orderByKey: true } }); }