Issue
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)
Solution
Try this??
import firebase from "firebase/app";
import "firebase/firestore";
Answered By - Aaron Saunders
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.