Rehman
Rehman

Reputation: 182

has no exported member 'Firebase'

I am trying to add Firebase in my ionic2 project from: https://ionicframework.com/docs/v2/native/firebase/

After installing, I got this error:

/myApp2/node_modules/ionic-native/dist/es5/index"' has no exported member 'Firebase'.

       L9:  import { Firebase } from 'ionic-native';

Anyone has solution for this?

Upvotes: 3

Views: 2133

Answers (3)

Bettaibi Nidhal
Bettaibi Nidhal

Reputation: 215

I think it's firebase versioning problem . If you use 4.5.0 version try to downgrade your version , I downgraded from firebase 4.5.0 to 4.3.0 . so resolved.

Upvotes: 0

Gabriel Barreto
Gabriel Barreto

Reputation: 6421

Use import * as Firebase from 'firebase'; instead.

Upvotes: 1

n00b
n00b

Reputation: 1852

ionic-native does not have firebase in it. firebase should be available globally once you install the plugin.

Upvotes: 0

Related Questions