这是一个要求初始化消防商店内的反应应用?或者我可以在google控制台中写规则吗?我的意思是,除了在vs而不是网页中本地编写规则之外,初始化的用例是什么?
// Import the functions you need from the SDKs you need
import { initializeApp } from 'firebase/app';
import { getAuth } from 'firebase/auth';
import { getFirestore } from 'firebase/firestore';
im
我导入Login组件进行测试,得到以下错误
● Test suite failed to run
FIREBASE FATAL ERROR: Can't determine Firebase Database URL. Be sure to include a Project ID when calling firebase.initializeApp().
到目前为止,我有这个
import React from "react";
import { render} from "@testing-library/react/pure";
i
起初,我得到的是" Firebase :名为'DEFAULT‘的Firebase应用程序已经存在( App /duplicate-app)“。错误。我在网上看到用"if (!firebase.apps.length) {}“包装firebase初始化可以解决这个问题。现在我收到了一个错误,上面写着"app is not defined“。我该如何解决这个问题? import firebase from "firebase/app";
import "firebase/auth";
if (!firebase.apps.leng
我在使用ionic的react中有一个应用程序,问题是我在我的项目中实现了firebase,我使用推送通知和分析事件,我目前有一个问题,因为我得到了这个错误,它抛出了太多次,我调查了一下,我没有看到任何关于这个问题的东西,所有的firebase函数对我都有效,但它一直抛出这个错误 Firebase analytics is not initialized. make sure initializeFirebase () is called once 我把数据的实现留在这里,一切都很好: FirebaseAnalytics.initializeFirebase({
apiKey: `$
最近,我通过严格遵循一些教程来学习React,但由于没有正确设置ReactJS和Firebase之间的集成,我的web应用程序被卡住了。这就是我到目前为止所拥有的。
var React = require('react');
var ReactDOM = require('react-dom');
var ReactFire = require('reactfire');
var Firebase = require('firebase');
var Fi
我在Next.js应用程序中使用MobX。问题出在StoreProvider组件中。我按照上的说明操作。问题是
[mobx] The provided value could not be converted into an observable. If you want just create an observable reference to the object use 'observable.box(value)
这是RootStore
// import { firestore } from 'firebase';
import CandidatesStor
我在使用隐式更新(angelFire)时没有问题。然而,我需要我的一些数据使用显式更新。因此,我实现了angelFireCollection,与我以前使用的ref完全相同,但是尽管console.log显式地说,读取是被授予的,并且使用onloadcallback和onloadcallback都进行了尝试,但我不会将数据直接输入到我指定的变量中,一旦回调触发,我就会得到一个奇怪的对象,它确实包含数据,但不包含我所期望的形式。我的作用域变量以一个空集合结束。从来没有人居住过。以下是代码:
var streamController = function ($rootScope, $scop
我正在制作一个食品递送应用程序,使用的反应-本地和redux。我想从防火墙存储中获取数据,为此,我在actions.js中编写了一个函数,但是每当我运行该应用程序时,它都会显示错误。
Firebase: No Firebase App '[DEFAULT]' has been created - call Firebase App.initializeApp() (app/no-app).
下面是我用来获取数据action.js的函数
import firebase from "firebase"
export const ProductDetails = (d