Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)
like image 504
Mars2024 Avatar asked Sep 12 '26 08:09

Mars2024


1 Answers

Try this??

import firebase from "firebase/app";
import "firebase/firestore";
like image 159
Aaron Saunders Avatar answered Sep 14 '26 22:09

Aaron Saunders



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!