title: firebase.auth.GoogleAuthProvider is not a constructor
body: <p>I'm trying to use google sign using firebase in the Vue framework. I don't know what the error is this can anyone help me with this.</p>
  <pre><code>vue.runtime.esm.js?2b0e:1888 TypeError: _firebase_js__WEBPACK_IMPORTED_MODULE_2__.fb.auth.GoogleAuthProvider is not a constructor
  at VueComponent.socialLogin (Signin.vue?3d55:76)
  at invokeWithErrorHandling (vue.runtime.esm.js?2b0e:1854)
  at HTMLButtonElement.invoker (vue.runtime.esm.js?2b0e:2179)
  at HTMLButtonElement.original._wrapper (vue.runtime.esm.js?2b0e:6917)
  </code></pre>
  <p>this is my code</p>
  <p><strong>firebase.js</strong></p>
  <pre><code>import firebase from &quot;firebase&quot;;
  var firebaseConfig = {
      config
  };
  const fb=firebase.initializeApp(firebaseConfig);
  export { fb };
  </code></pre>
  <p><strong>Sign in.vue</strong></p>
  <pre><code>&lt;script&gt;
      import { fb } from &quot;../firebase.js&quot;;
      export default {
        name: &quot;Signin&quot;,
        components: {},
        data() {
          return {
          };
        },
      
        methods: {
           socialLogin() {
         const provider = new fb.auth.GoogleAuthProvider();
      
              fb.auth().signInWithPopup(provider).then((result) =&gt; {
                this.$router.replace('home');
              }).catch((err) =&gt; {
                alert('Oops. ' + err.message)
              });
            }
        }
      };
      &lt;/script&gt;
  </code></pre>