我完全知道这个问题已经被问过很多次了,但是似乎没有一个解决方案对我有用。一切运行良好,然后重新加载我的应用程序firebase似乎已关闭。我尝试多次重新运行我的应用程序并重新键入代码中与Firebase相关的部分,但是没有任何方法可以解决此问题。您将提供任何帮助或指导,以帮助我完成此修复程序。
import * as firebase from 'firebase'
import Requests from './Requests'
import {
Provider
} from 'react-redux'
import {
createStore,
applyMiddleware
} from 'redux'
import reducers from '../reducers/EventReducer'
import Thunk from 'redux-thunk'
const store = createStore(reducers,
window.__REDUX_DEVTOOLS_EXTENSION__ &&
window.__REDUX_DEVTOOLS_EXTENSION__(),
applyMiddleware(Thunk))
class App extends React.Component {
componentWillMount = () => {
firebase.initializeApp({
apiKey: "my key",
authDomain: "my domain",
databaseURL: "my url",
projectId: "my id",
storageBucket: "my storage bucket",
messagingSenderId: "my messagingSenderID"
})
}