这部分我使用了的指南,但是视频的创建者使用的是firebase 8,我使用的是firebase 9,所以我目前正面临这个问题。
TypeError: undefined is not an object (evaluating '_firebase.auth.createUserWithEmailAndPassword')
我有以下内容(firebase.js):
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app"
我正在尝试创建一个可以访问我的数据库的firebase函数。但是,当我运行firebase deploy --仅限函数时,会出现以下错误:
TypeError: firebase.initializeApp is not a function
at Object.<anonymous> (C:\Users\xxx\Documents\TriviaGame\functions\index.js:34:10)
at Module._compile (module.js:653:30)
at Object.Module._extensions..js (modul
我有个问题。我想从登录的用户那里获取所有信息。这些信息包含在Firebase数据库中。当我使用用户数据登录时,控制台会给我以下错误消息:
subscribe.js:159 TypeError: db.collection is not a function
at Object.next (index.js:9)
我怎样才能纠正错误?
index.js
firebase.auth().onAuthStateChanged(function(user) {
if (user) {
// User is signed in.
var db = firebase
我有一个Express应用程序,我正在尝试连接到Firebase。 我的控制台当前抛出此错误: C:\Users\Tyler\Desktop\Dev\food-bank\app.cjs:19
const firebase = initializeApp(firebaseConfig);
^
TypeError: initializeApp is not a function
at Object.<anonymous> (C:\Users\Tyler\Desktop\Dev\food-bank\app.cjs:19:18)
at
在从Firebase获取数据时,我试图将获得的object的properties设置为UI,但当我尝试对数据进行任何更改时,它会抛出此错误。
v-on处理程序出错:"TypeError:无法使用' in‘运算符在null中搜索'cc’。
我在开发模式中使用Vue,以及Firebase.Is,有什么我遗漏的概念吗?
beforeCreate(){
sref.get().then(sc => {
if (sc.exists) {
console.log(sc.data()); //this logs in the correct data
在本地开发Google云功能。试图测试调用Firestore的函数。下面是一个很小的例子。
模拟器正在运行。
当从浏览器调用函数addMessage()时,它工作得非常好。
在从测试中调用错误TypeError [ERR_INVALID_ARG_TYPE]: The "path" argument must be of type string.时,该函数会失败。
问题:为什么会发生此错误,以及如何从测试中成功地调用Firestore函数?
函数/index.js:
require ('dotenv').config();
const f
Firebase函数工作正常,我更新到最新的firebase-tools,现在运行firebase服务时遇到了这个错误问题。
[debug] [2020-05-28T20:37:11.387Z] [runtime-status] [93658] Error in handleMessage: => TypeError: Cannot set property config of #<Object> which has only a getter: TypeError: Cannot set property config of #<Object> which h
我使用的是react-redux-firebase和redux-firestore包。我正在尝试用useFirestoreConnect钩子连接到redux,但是调用这个钩子之后,它给了我一个TypeError,如图中所示。我已经搜索过GitHub问题、文档和这里,但我没有找到任何解决方案。
错误:Uncaught (in promise) TypeError: Object(...) is not a function
您可以在这张图片中看到整个错误:
我想使用firebase作为我的服务器的数据库服务,android应用程序会向其发送请求。我希望服务器能够检索数据,而不是android应用程序,因为我想在将数据发送回客户端( app )之前进行一些处理。
我的节点代码(index.js):
const express = require('express')
const app = express()
var port = process.env.PORT || 10000
firebase = require('./firebase') // I added this cuz I can't u
我正在尝试从我的应用程序signOut用户,但我从控制台收到此消息。
Possible Unhandled Promise Rejection (id: 1):
TypeError: undefined is not an object (evaluating '_auth.firebase.auth.currentUser.signOut')
根据文档(),我创建了一个如下函数
async function LogoutUser() {
firebase.auth.currentUser.signOut();
}
但对用户帐户没有任何影响。有谁能帮帮我吗?
我在做一个chrome浏览器的扩展。当我试图用两种可能的方式将防火墙与web应用程序连接时,没有一种方式起作用。
当我尝试将这个命令安装到我的项目文件夹中,并编写了一个fireConn.js文件和我从在线创建的firebase项目中获得的配置时,我使用了"npm“。
import {initializeApp} from 'firebase/app';
import {getFirestore} from 'firebase/firestore';
我得到的错误是
Uncaught TypeError: Failed to resolve m
我正在尝试使用botkit-storage-firebase将Firebase集成到Botkit中,但在初始化时收到以下警告:
FIREBASE WARNING: Exception was thrown by user callback. TypeError: cb is not a function
at success (/Users/ankitshekhawat/Downloads/botkit-master 2/node_modules/botkit-storage-firebase/src/index.js:50:13)
at c (/Users/ankitshek
更新:本教程已经更新,下面的问题实际上已不再适用
从网站thinkster.io (免费电子书)了解有关thinkster.io的信息。但现在我被困在了。这是一个关于angularjs的教程,它适用于消防基地。
我已经根据站点编写了所有的代码,但是当我想注册一个用户时,我会得到这些控制台错误。它将创建用户(在firebase -simplelogin中),但不创建用户对象(在firebase -data中)。
TypeError: undefined is not a function
at Object.User.create (http://localhost:9000/scripts/
我正在尝试通过Arduino将Python程序连接到MongoDB数据库,但是,我总是遇到:
TypeError: 'Collection' object is not callable.
If you meant to call the 'collection' method on a 'Database' object it is failing because no such method exists.
(这是我的第一篇文章,请原谅任何错误的格式,如果需要更多信息来理解这个问题,请让我知道)
该程序过去是连接到firebase数据库的
我正在尝试为Firebase中新创建的用户添加自定义信息。我正确地使用了ref().set(),但由于某种原因,它告诉我它不是一个函数。我遗漏了什么? 我已经确保我使用了正确的语法和方法。一切都被定义好了。 下面是我的控制台中的错误:Console Error TypeError: Object(...) is not a function
at writeUserName (db.js:4)
at SignUp.js:54 这是我的Firebase配置:Firebase Config import firebase from 'firebase/app';
import
我正在尝试在我的$.each()使用promise完成后调用一个函数。然而,当我尝试下面的代码时,我得到了Uncaught TypeError: $.each(...).promise is not a function。
$.each(snapshot.val(), function(chat, i){
firebase.database().ref('chats/'+chat+'/msgs').once('value', function(snap){
if (Object.keys(snap.val())[0] !=
我正在使用firebase (旧API),甚至无法使初始化工作。我用npm安装了firebase --保存,我的文件中只有:
var Firebase = require("firebase");
var firebaseRef = new Firebase("https://my-app.firebaseio.com");
当我运行节点-file.js时,我得到:
var firebaseRef = new Firebase("https://my-app.firebaseio.com");
^
TypeE
firebase云函数中的类型记录代码出现错误
TypeError: variations.keys is not a function
代码片段导致错误,给出如下
const currentDoc = await transaction.get(ref)
if (currentDoc !== undefined) {
const variations = currentDoc.get('variation') as Map<string,any>
for (const i of variations.keys()) {
}
firebas