base-chat icon indicating copy to clipboard operation
base-chat copied to clipboard

ERROR in src/app/services/chat.service.ts(56,37)

Open WebDeveloperWannaBe opened this issue 7 years ago • 2 comments

ERROR in src/app/services/chat.service.ts(56,37): error TS2345: Argument of type '{ query: { limitToLast: number; orderByKey: boolean; }; }' is not assignable to parameter of type 'FirebaseListFactoryOpts'. Types of property 'query' are incompatible. Type '{ limitToLast: number; orderByKey: boolean; }' is not assignable to type 'Query'. Property 'endAt' is missing in type '{ limitToLast: number; orderByKey: boolean; }'.

This is the error I'm currently facing right now. Hope you could help me. Thank you.

WebDeveloperWannaBe avatar Feb 02 '18 16:02 WebDeveloperWannaBe

in command prompt type npm install [email protected] [email protected] --save

then the error will be gone

ArjunKiruthivasan avatar Feb 04 '18 16:02 ArjunKiruthivasan

You are right, this fixed it for me. Also, it still has an error in the app.module.ts where it says
Module '"c:/xampp/htdocs/wes_doyle_projects/dancechat/node_modules/angularfire2/index"' has no exported member 'AngularFireModule'. for this line import { AngularFireModule } from 'angularfire2';

But despite this, app is so far working

Any ideas?

evelicanin avatar Feb 14 '18 03:02 evelicanin