firebase.auth is not a function

前端 未结 18 960
孤城傲影
孤城傲影 2020-11-28 10:30

I am using Webpack with firebase and firebase-admin.

To install firebase I ran

npm install --save firebase

I am importing firebase

18条回答
  •  春和景丽
    2020-11-28 10:55

    I had the same problem and solved it this way:

    
    
    
    

    The difference you notice is that they need:

    
    

    and initialize the function

    const auth = firebase.auth ();`enter code here`
    

提交回复
热议问题