firebase.auth is not a function

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

    This was a weird error, and I notice it only when installing with npm. For some reason, I don't encounter the issue when using yarn. I didn't have to change imports, like many answers here have suggested, nor any part of my code.

提交回复
热议问题