title: Can't import firebase auth after export firebase.auth
body: <p>after I initialize firebase in firebase.js, I can't import it in App.js, &quot;Module not found: Can't resolve 'firebase' in 'G:\React\Projekty\Reactflix\src\services'&quot;. I've installed firebase in version &quot;^9.0.2&quot;.</p>
  <p>Here is firebase.js:</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>    import firebase from 'firebase';   
      
      //firebase Config
      const firebaseConfig = {
        apiKey: process.env.REACT_APP_FIREBASE_API_KEY,
        authDomain: process.env.REACT_APP_AUTH_DOMAIN,
        databaseURL: process.env.REACT_APP_DATABASE_URL,
        projectId: process.env.REACT_APP_PROJECT_ID,
        storageBucket: process.env.REACT_APP_STORAGE_BUCKET,
        messagingSenderId: process.env.REACT_APP_MESSAGING_SENDER_ID,
        appId: process.env.REACT_APP_APP_ID,
      };
      
      // Initialize Firebase
      firebase.initializeApp(firebaseConfig)
      export const auth = firebase.auth;</code></pre>
  </div>
  </div>
  </p>
  <p>And my App.js</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>import React, { Component } from 'react';
      import { Route, BrowserRouter as Router, Switch, Redirect } from "react-router-dom";
      
      import Home from './pages/Home';
      import Movies from './pages/Movies';
      import Series from './pages/Series';
      import MyList from './pages/MyList';
      import Signup from './pages/Signup';
      import Login from './pages/Login';
      import Page404 from './pages/Page404';
      import Profile from './pages/Profile';
      import { auth } from './services/firebase'
      
      import './App.css';
      
      function App() {
        return (
          &lt;div className="App"&gt;
            Reactflix
          &lt;/div&gt;
        );
      }
      
      export default App;</code></pre>
  </div>
  </div>
  </p>
  <p>Finally error message:
  <a href="https://i.stack.imgur.com/Tv5U1.png" rel="nofollow noreferrer">firebase_error</a></p>
  <p>Is something wrong with the code? Looks good for me...</p>