【问题标题】:Getting firebase error when trying to authenticate with google with react尝试通过 React 向 Google 进行身份验证时出现 Firebase 错误
【发布时间】:2017-07-29 18:25:09
【问题描述】:

我在控制台中收到此错误

Cannot read property 'ac' of undefined

当我尝试在反应中运行此代码时:

Home.js

Firebase.js

我正在使用 webpack 开发服务器,但我在开发服务器控制台中没有收到任何错误。是的,我确实安装了 firebase 节点模块。

【问题讨论】:

  • 能不能提供代码,方便参考
  • 点击代码链接
  • 提供如何引发此错误的详细信息。在您的代码中查找的位置并不明显。哪一行抛出此错误。

标签: javascript reactjs firebase firebase-authentication


【解决方案1】:

我想通了。我缩小的 js 缺少某些使其不可读的东西。我重新安装了 Firebase v4,它工作正常。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-05-24
    • 1970-01-01
    • 2018-02-22
    • 2021-08-13
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多