wesdoyle / base-chat

A simple chat application built using Angular and Firebase
52 stars 52 forks source link

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

Open WebDeveloperWannaBe opened 6 years ago

WebDeveloperWannaBe commented 6 years ago

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.

ArjunKiruthivasan commented 6 years ago

in command prompt type npm install firebase@3.6.6 angularfire2@4.0.0-rc.0 --save

then the error will be gone

evelicanin commented 6 years ago

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?