firebase.auth is not a function

前端 未结 18 985
孤城傲影
孤城傲影 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条回答
  •  萌比男神i
    2020-11-28 11:04

    Had the same issue, I think it's because of versions troubles. I solve it by deleting node_modules and all webpack generated stuff and take versions from here.
    Btw, I think it's very strange behavior, because it should work like in official documentation.

提交回复
热议问题