plinionaves / ionic2-firebase-chat

MIT License
30 stars 18 forks source link

Project not working #1

Open brianducca opened 7 years ago

brianducca commented 7 years ago

I've done the pull, install dependencies and its not working.

Starting app-scripts server: --address 0.0.0.0 --port 8100 --livereload-port 35729 --dev-logger-port 53703 --nobrowser - Ctrl+C to cancel [10:28:55] watch started ... [10:28:55] build dev started ... [10:28:55] clean started ... [10:28:55] clean finished in 5 ms [10:28:55] copy started ... [10:28:55] transpile started ... [10:28:59] typescript: .../Dev/ionic2-firebase-chat/node_modules/angularfire2/app/firebase.app.module.d.ts, line: 5 Class 'FirebaseApp' incorrectly implements interface 'App'. Property 'firestore' is missing in type 'FirebaseApp'.

   L4:  export declare const FirebaseAppConfigToken: InjectionToken<FirebaseAppConfig>;
   L5:  export declare class FirebaseApp implements firebase.app.App {
   L6:      name: string;

[10:28:59] typescript: .../Dev/ionic2-firebase-chat/node_modules/angularfire2/app/firebase.app.module.d.ts, line: 12 Namespace 'firebase' has no exported member 'Promise'.

  L11:      storage: () => firebase.storage.Storage;
  L12:      delete: () => firebase.Promise<any>;

[10:28:59] typescript: ...2-firebase-chat/node_modules/angularfire2/database/firebase_list_observable.d.ts, line: 14 Namespace 'firebase' has no exported member 'Promise'.

  L13:  push(val: any): firebase.database.ThenableReference;
  L14:  update(item: FirebaseOperation, value: Object): firebase.Promise<void>;
  L15:  remove(item?: FirebaseOperation): firebase.Promise<void>;

[10:28:59] typescript: ...2-firebase-chat/node_modules/angularfire2/database/firebase_list_observable.d.ts, line: 15 Namespace 'firebase' has no exported member 'Promise'.

  L14:  update(item: FirebaseOperation, value: Object): firebase.Promise<void>;
  L15:  remove(item?: FirebaseOperation): firebase.Promise<void>;
  L16:  _checkOperationCases(item: FirebaseOperation, cases: FirebaseOperationCases): firebase.Promise<void>;

[10:28:59] typescript: ...2-firebase-chat/node_modules/angularfire2/database/firebase_list_observable.d.ts, line: 16 Namespace 'firebase' has no exported member 'Promise'.

  L15:      remove(item?: FirebaseOperation): firebase.Promise<void>;
  L16:      _checkOperationCases(item: FirebaseOperation, cases: FirebaseOperationCases): firebase.Promise<void>;

[10:28:59] typescript: ...firebase-chat/node_modules/angularfire2/database/firebase_object_observable.d.ts, line: 11 Namespace 'firebase' has no exported member 'Promise'.

  L10:  lift<T, R>(operator: Operator<T, R>): Observable<R>;
  L11:  set(value: any): firebase.Promise<void>;
  L12:  update(value: Object): firebase.Promise<void>;

[10:28:59] typescript: ...firebase-chat/node_modules/angularfire2/database/firebase_object_observable.d.ts, line: 12 Namespace 'firebase' has no exported member 'Promise'.

  L11:  set(value: any): firebase.Promise<void>;
  L12:  update(value: Object): firebase.Promise<void>;
  L13:  remove(): firebase.Promise<void>;

[10:28:59] typescript: ...firebase-chat/node_modules/angularfire2/database/firebase_object_observable.d.ts, line: 13 Namespace 'firebase' has no exported member 'Promise'.

  L12:      update(value: Object): firebase.Promise<void>;
  L13:      remove(): firebase.Promise<void>;

[10:28:59] typescript: ...cca/Documents/Dev/ionic2-firebase-chat/node_modules/angularfire2/interfaces.d.ts, line: 12 Namespace 'firebase' has no exported member 'Promise'.

  L11:  export interface FirebaseOperationCases {
  L12:      stringCase: () => firebase.Promise<void>;
  L13:      firebaseCase?: () => firebase.Promise<void>;

[10:28:59] typescript: ...cca/Documents/Dev/ionic2-firebase-chat/node_modules/angularfire2/interfaces.d.ts, line: 13 Namespace 'firebase' has no exported member 'Promise'.

  L12:  stringCase: () => firebase.Promise<void>;
  L13:  firebaseCase?: () => firebase.Promise<void>;
  L14:  snapshotCase?: () => firebase.Promise<void>;

[10:28:59] typescript: ...cca/Documents/Dev/ionic2-firebase-chat/node_modules/angularfire2/interfaces.d.ts, line: 14 Namespace 'firebase' has no exported member 'Promise'.

  L13:  firebaseCase?: () => firebase.Promise<void>;
  L14:  snapshotCase?: () => firebase.Promise<void>;
  L15:  unwrappedSnapshotCase?: () => firebase.Promise<void>;

[10:28:59] typescript: ...cca/Documents/Dev/ionic2-firebase-chat/node_modules/angularfire2/interfaces.d.ts, line: 15 Namespace 'firebase' has no exported member 'Promise'.

  L14:      snapshotCase?: () => firebase.Promise<void>;
  L15:      unwrappedSnapshotCase?: () => firebase.Promise<void>;

[10:28:59] typescript: C:/Users/bducca/Documents/Dev/ionic2-firebase-chat/src/providers/auth.service.ts, line: 23 Namespace 'firebase' has no exported member 'Promise'.

  L23:    createAuthUser(user: {email: string, password: string}): firebase.Promise<firebase.User> {
  L24:      return this.afAuth.auth.createUserWithEmailAndPassword(user.email, user.password)

[10:28:59] typescript: C:/Users/bducca/Documents/Dev/ionic2-firebase-chat/src/providers/auth.service.ts, line: 28 Namespace 'firebase' has no exported member 'Promise'.

  L28:    signinWithEmail(user: {email: string, password: string}): firebase.Promise<boolean> {
  L29:      return this.afAuth.auth.signInWithEmailAndPassword(user.email, user.password)

[10:28:59] typescript: C:/Users/bducca/Documents/Dev/ionic2-firebase-chat/src/providers/auth.service.ts, line: 35 Namespace 'firebase' has no exported member 'Promise'.

  L35:    logout(): firebase.Promise<any> {
  L36:      return this.afAuth.auth.signOut();

[10:28:59] typescript: C:/Users/bducca/Documents/Dev/ionic2-firebase-chat/src/providers/chat.service.ts, line: 44 Namespace 'firebase' has no exported member 'Promise'.

  L44:    create(chat: Chat, userId1: string, userId2: string): firebase.Promise<void> {
  L45:      return this.db.object(`/chats/${userId1}/${userId2}`)

[10:28:59] typescript: C:/Users/bducca/Documents/Dev/ionic2-firebase-chat/src/providers/chat.service.ts, line: 55 Namespace 'firebase' has no exported member 'Promise'.

  L55:  FirebaseObjectObservable<Chat>, chatPhoto: string, recipientUserPhoto: string): firebase.Promise<boolean> {
  L56:      if (chatPhoto != recipientUserPhoto) {

[10:28:59] typescript: ...Users/bducca/Documents/Dev/ionic2-firebase-chat/src/providers/message.service.ts, line: 22 Namespace 'firebase' has no exported member 'Promise'.

  L22:    create(message: Message, listMessages: FirebaseListObservable<Message[]>): firebase.Promise<void> {
  L23:      return listMessages.push(message)

[10:28:59] typescript: ...Users/bducca/Documents/Dev/ionic2-firebase-chat/src/providers/message.service.ts, line: 24 Property 'catch' does not exist on type 'ThenableReference'.

  L23:    return listMessages.push(message)
  L24:      .catch(this.handlePromiseError);

[10:28:59] typescript: C:/Users/bducca/Documents/Dev/ionic2-firebase-chat/src/providers/user.service.ts, line: 55 Namespace 'firebase' has no exported member 'Promise'.

  L55:    create(user: User, uuid: string): firebase.Promise<void> {
  L56:      return this.db.object(`/users/${uuid}`)

[10:28:59] typescript: C:/Users/bducca/Documents/Dev/ionic2-firebase-chat/src/providers/user.service.ts, line: 61 Namespace 'firebase' has no exported member 'Promise'.

  L61:    edit(user: {name: string, username: string, photo: string}): firebase.Promise<void> {
  L62:      return this.currentUser
JoseRFJuniorLLMs commented 6 years ago

Você tem que instalar o firebase ! $ npm init $ npm install --save firebase