jjzjj

firebase-cli

全部标签

javascript - IONIC 1 项目的 ionic 服务,不适用于 ionic 4 cli

今天在IONIC4Beta发布后,我将IONICCLI更新到4.0.1。在我尝试使用为我的IONICv1项目之一提供服务之后ionicservecommanditwasshowingbelowerrorandwarningstomeionicserveionic-v1serve--host0.0.0.0--port8100--lr-port35729--dev-port53703[v1]'ionic-v1'isnotrecognizedasaninternalorexternalcommand,[v1]operableprogramorbatchfile.[INFO]看起来@ionic

javascript - 在 Firebase 云函数中包含异步函数 (eslint "Parsing error: Unexpected token function")

问题如何将async辅助方法添加到CloudFunctionsindex.js文件中?在将fs.writefile转换为Promise时,需要一个async函数才能使用await,如本文所述StackOverflow帖子:fs.writeFileinapromise,asynchronous-synchronousstuff.但是,lint不赞成在exports函数之外向index.js文件添加额外的方法。错误第84行引用辅助函数asyncfunctionwriteFile。Users/adamhurwitz/coinverse/coinverse-cloud-functions/fu

javascript - 如何使用 ember-cli 安装 fastclick?

我有一个ember-cli项目。我已经使用bower安装fastclick并将其添加到我的brocfile。现在我正在尝试初始化它。在我的app.js文件中,我添加了:importFastClickfrom'bower_components/fastclick/lib/fastclick';但这在控制台中给我一个错误:“未捕获的类型错误:无法读取未定义的属性‘默认’”。检查器显示以下生成的代码:["ember","ember/resolver","ember/load-initializers","bower_components/fastclick/lib/fastclick","e

javascript - 在 Windows 10 上安装 Angular-CLI

我在Windows10系统上安装angular-cli时遇到问题。这些错误与Python依赖项和node-gyp有关。如下所示:>execSync@1.0.2installC:\Users\UserName\AppData\Roaming\npm\node_modules\angular-cli\node_modules\execSyncnodeinstall.js[execsyncv1.0.2]Attemptingtocompilenativeextensions.{Error:spawnnode-gypENOENTatexports._errnoException(util.js:

javascript - 如何使用 Cloud Functions for Firebase 与 .onWrite 或 onchange 比较新旧值?

让我们采用以下数据结构:现在我想用Firebase函数刷新accessTokenFacebook。我测试了两个选项:onWrite和:onChangedonWrite对我来说看起来最好,但具有以下功能:exports.getFacebookAccessTokenOnchange=functions.database.ref('/users/{uid}/userAccountInfo/lastLogin').onWrite(event=>{constlastLogin=event.data;letdateObject=newDate();letcurrentDate=dateObject

javascript - vue cli - 未捕获的语法错误 : Unexpected token <

我用vue-cli3.0创建我的项目.最初它运行正常。但是在我-c之后然后npmrunserve再次,它不断抛出错误:UncaughtSyntaxError:Unexpectedtoken表示错误发生在app.js的第一行,但我在控制台检查了实际上是来自index.html.这意味着在这个过程中的某个地方,webpack思想index.html应该转译为app.js.下面是我使用的包:vue3.0.0-rc.3@vue/cli-plugin-babel^3.0.0-beta.15@vue/cli-plugin-eslint^3.0.0-beta.15@vue/cli-service^3

javascript - Firebase 版本 3 中的 changePassword() 方法

我在我的ReactNativeiOS项目中使用firebasever3.2.1。我阅读了2.4.2版本的日志here,有一个名为changePassword()的方法可以用来更改用户的密码。但是当我查看Firebase版本3.2.1的文档时,我找不到任何名为changePassword()的方法。所以我想知道,changePassword()方法是否不能再在Firebase版本3中使用?谢谢。 最佳答案 自Firebasev3.0以来,changePassword方法不再可用。如果您需要重置用户密码,您可以使用自定义电子邮件操作处理

javascript - 使用 ControllerAs 语法的 Firebase 3 向数据绑定(bind)

我正在尝试使用firebase和angularfire进行三向数据绑定(bind)。你可以看到我在Plunker中得到了什么:http://plnkr.co/edit/RGA4jZK3Y6n4RkPCHK37app.js:angular.module('ideaBattle',["firebase"]);服务:angular.module('ideaBattle').constant('FBURL','https://ideabattle.firebaseio.com/').service('Ref',['FBURL',Firebase]).factory('dataBank',fun

javascript - Firebase 检测用户是否存在

如何通过ReactNative检查Signup按钮中的Firebase身份验证中是否存在用户?这是我的登录页面代码:exportdefaultclassLoginextendsComponent{constructor(props){super(props)this.state={email:'',password:'',response:''}this.signUp=this.signUp.bind(this)this.login=this.login.bind(this)}asyncsignUp(){try{awaitfirebase.auth().createUserWithEm

javascript - 使用 Redux-Saga 的 Firebase 身份验证不起作用

我正在尝试使用firebase身份验证创建一个新用户。我正在使用redux-saga进行上述调用。下面是我的saga.js:import{takeLatest,put}from'redux-saga/effects';import{SIGN_UP,AUTHENTICATION_FAILED,SIGN_UP_SUCCESS}from'../actions/index';importfirebasefrom'firebase';function*signUp(action){console.log("abouttocallauthentication");//Thisbeingprinte