firebase.auth is not a function

前端 未结 18 961
孤城傲影
孤城傲影 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

    Though there are many root causes behind this issue, a simple one like this also could be the case.

    I forgot to include the js files for auth and db although I use them inside the JS code.

    Before the fix;

    
    

    After the fix;

    
    
    
    
    
    
    

提交回复
热议问题