Mars2024
Mars2024

Reputation: 394

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

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

Answers (1)

Aaron Saunders
Aaron Saunders

Reputation: 33345

Try this??

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

Upvotes: 11

Related Questions