Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Project not working #1

Open
brianducca opened this issue Nov 13, 2017 · 1 comment
Open

Project not working #1

brianducca opened this issue Nov 13, 2017 · 1 comment

Comments

@brianducca
Copy link

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants