_firebase2.default.initializeApp is not a function

1,825 views
Skip to first unread message

Robert Balejík

unread,
Aug 1, 2016, 1:44:13 PM8/1/16
to Firebase Google Group
import 'firebase';
import { firebaseConfig } from './config';

export const firebaseApp = firebase.initializeApp(firebaseConfig);
export const firebaseAuth = firebaseApp.auth();
export const firebaseDb = firebaseApp.database();


why default.initialize ? it's not even there anyway I've it set up correctly I don't see where's the problem

Jacob Wenger

unread,
Aug 2, 2016, 12:36:12 PM8/2/16
to fireba...@googlegroups.com
Your first import looks wrong. Try using:

import * as firebase from 'firebase';

instead of just:

import 'firebase';.

Also make sure you are using the latest version of the Firebase SDK.

Cheers,
Jacob

--
You received this message because you are subscribed to the Google Groups "Firebase Google Group" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebase-tal...@googlegroups.com.
To post to this group, send email to fireba...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/firebase-talk/78a67f2b-ba39-4660-98c4-110bd513f16d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages