title: Uncaught FirebaseError: Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app/no-app). - In React.js
body: <p>When i look up this error its with flutter or React Native. All the the solutions I have come  across did not help.</p>
  <p>I have also done it like this . If i do i get a - Maximum call stack size exceeded error</p>
  <pre><code>const app = firebase.initializeApp(firebaseConfig) 
  </code></pre>
  <p>Any help will be appreciated.</p>
  <pre><code>import {firebase} from './firebase'
  import {getFirestore} from 'firebase/firestore'
  import {getStorage} from 'firebase/storage'
  
  
  const firebaseConfig ={
      apiKey: &quot;&quot;,
      authDomain: &quot;&quot;,
      projectId: &quot;&quot;,
      storageBucket: &quot;&quot;,
      messagingSenderId: &quot;&quot;,
      appId: &quot;&quot;,
      measurementId: &quot;&quot;
  };
  
  
  const db = getFirestore()
  const storage = getStorage()
  const app = !getApps().length ? initializeApp(firebaseConfig) : getApp()
  
  
  
  
  export {db,storage,firebase,app}
  
      
  </code></pre>