Answers for ""export 'default' (imported as 'firebase') was not found in 'firebase/app'"

1

"export 'default' (imported as 'firebase') was not found in 'firebase/app'

//to use firebase app
import firebase from 'firebase/app'; //older version
import firebase from 'firebase/compat/app'; //v9

//to use auth
import 'firebase/auth'; //older version
import 'firebase/compat/auth'; //v9

//to use firestore
import 'firebase/firestore'; //Older Version
import 'firebase/compat/firestore'; //v9
Posted by: Guest on September-26-2021
0

"export 'default' (imported as 'firebase') was not found in 'firebase/app'

import { initializeApp } from 'firebase/app';

// TODO: Replace the following with your app's Firebase project
configuration const firebaseConfig = {   //... };

const app = initializeApp(firebaseConfig);
Posted by: Guest on September-26-2021

Code answers related to ""export 'default' (imported as 'firebase') was not found in 'firebase/app'"

Browse Popular Code Answers by Language