Javier
Javier

Reputation: 2105

Ionic errors with install after pull or clone

I always have problems with git, pulls, push, commits, merge AGHH.. I cloned a repository where I am working and when is downloaded, I run "npm install" and show me this message:

npm WARN @ionic-native/[email protected] requires a peer of @ionic-native/core@^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/[email protected] requires a peer of @ionic-native/core@^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/[email protected] requires a peer of @ionic-native/core@^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/[email protected] requires a peer of @ionic-native/core@^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/[email protected] requires a peer of @ionic-native/core@^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/[email protected] requires a peer of @ionic-native/core@^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN @ionic-native/[email protected] requires a peer of @ionic-native/core@^4.2.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of firebase@^3.6.6 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

added 114 packages and updated 34 packages in 17.482s

And I think, that maybe are not installed, but are in config.xml but plugin folder doesn't exist. So, I run "ionic cordova platform add android" and then creates the folder with all plugins.

When it's finished run "ionic serve" and show this error:

Typescript Error
Namespace 'firebase' has no exported member 'Promise'.
...hub/app/node_modules/angularfire2/app/firebase.app.module.d.ts
    storage: () => firebase.storage.Storage;
    delete: () => firebase.Promise<any>;
}
Typescript Error
Namespace 'firebase' has no exported member 'Promise'.
...ub/app/node_modules/angularfire2/database/firebase_list_observable.d.ts 

etc... How can I fix it?? I don't understand why?

Upvotes: 0

Views: 407

Answers (1)

Prithivi Raj
Prithivi Raj

Reputation: 2736

Check your firebase version, firebase.Promise was removed in version 4.5.0 of the firebase SDK. Now you just use a regular Promise. PFB the sample

signIn(email: string, password: string): Promise<void> {
    return this.auAuth.auth.signInWithEmailAndPassword(email, password);
  }

Upvotes: 1

Related Questions