Property 'initializeApp' does not exist on type 'typeof import(/././projectfolder/node_modules/firebase'

Viewed 3975

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)
1 Answers

Try this??

import firebase from "firebase/app";
import "firebase/firestore";
Related