我试图使用React来处理光纤基础身份验证,但它说是错误,"Attempted import error: 'firebase/app' does not contain a default export(imported as 'firebase')"。如果我使用import * as firebase from "firebase/app",那么停止使用显示错误<em
这个错误很奇怪,在firebase的原生反应中.What错误,我已经通过npm安装了firebase,这里是我的代码 import React, {Component} from 'react'import { initializeApp } from 'firebase/app'
import firebase from 'firebase/compa
将此应用程序设置为firebase很困难,从firebase/app导出的应用程序上似乎没有firestore()方法(见附图)。这是我的代码。谁来帮我修一下。// Import the functions you need from the SDKs you need// TODO:Add SDKs for Firebase