Reputation: 394
This question is actually similar to this
and this
I am setting up the config.ts file for Firebase. 'initializeApp' is not working and giving the error in the title above. Just wondering if this is a firebase global install issue or if I should be calling initializeApp differently.
import * as firebase from 'firebase'
import { config } from 'process'
const config = {
}
firebase.initializeApp(config)
Upvotes: 3
Views: 4438
Reputation: 33345
Try this??
import firebase from "firebase/app";
import "firebase/firestore";
Upvotes: 11