Comments (7)
firstly it's need to be together
//import { AngularFireDatabase, FirebaseListObservable } from 'angularfire2/database-deprecated';
secondly it's my funcshion
getMessages(): FirebaseListObservable<ChatMessage[]> {
// query to create our message feed binding
return this.db.list('message', {
query: {
limitToLast: 20
}
});
}
and it's work now.
from base-chat.
For AngularFire version 5 and up use,
db.list('/items', ref => ref.orderByChild('size').equalTo('large'));
for details please refer here
from base-chat.
I'm getting the same issue Argument of type '{ query: { limitTolast: number; orderByKey: boolean; }; }' is not assignable to parameter of type 'QueryFn'.
Object literal may only specify known properties, and 'query' does not exist in type 'QueryFn'.
from base-chat.
hii. i have this problem also. Maybe you found what need to do yet?
from base-chat.
Thanks 3669
from base-chat.
ERROR in src/app/services/chat.service.ts(55,39): error TS2345: Argument of type '{ query: { limitToLast: number; }; }' is not assignable to parameter of type 'FirebaseListFactoryOpts'.
Types of property 'query' are incompatible.
Type '{ limitToLast: number; }' is not assignable to type 'Query'.
Property 'endAt' is missing in type '{ limitToLast: number; }'.
whats happening??
chat.services.ts
getMessages(): FirebaseListObservable<ChatMessage[]> {
// query to create our message feed binding
return this.db.list('messages', {
query: {
limitToLast: 20,
}
});
}
from base-chat.
ERROR in src/app/services/chat.service.ts(48,7): error TS2345: Argument of type '{ query: { limitToLast: number; orderByKey: boolean; }; }' is not assignable to parameter of type 'QueryFn'.
Object literal may only specify known properties, and 'query' does not exist in type 'QueryFn'.
../../node_modules/rxjs-compat/Observable.d.ts(1,28): error TS2307: Cannot find module 'rxjs'.
../../node_modules/rxjs-compat/Observable.d.ts(2,70): error TS2307: Cannot find module 'rxjs'.
from base-chat.
Related Issues (15)
- No exported member 'FirebaseListObservable'
- Namespace 'firebase' has no exported member 'Promise'. HOT 1
- chatMessage.timeSent in message.component.ts is not showing the current time HOT 3
- On latest angularfire2 (5.0.0-rc.4) - FirebaseListObservable HOT 1
- invalidpipeargument: '[object object]' for pipe 'asyncpipe' HOT 2
- query error HOT 6
- ERROR in src/app/services/chat.service.ts(56,37) HOT 2
- ChatFormComponent.html:6 ERROR TypeError: this.getTimeStamp is not a function HOT 1
- The query Error won't go. HOT 2
- Stuck on updating the Deprecated code HOT 2
- I can't get the data from firebase in feed component. HOT 2
- Getting this Error during first Video, Before setting up Feed.component HOT 1
- How I ran it... HOT 1
- Version issue HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from base-chat.