firebase-cli

No HTTPS functions found. Use firebase functions:shell

陌路散爱 提交于 2019-12-25 03:28:08
问题 I've been trying all day to get my functions to run locally but I don't know why it keeps saying I have no functions. I'm using typescript, so I ran tsc in the functions folder, then ran sudo firebase serve --only functions , but I get this error: i functions: No HTTPS functions found. Use firebase functions:shell if you would like to emulate other types of functions. Edit: I tried serving the function without sudo but I get permission issues: 回答1: Make sure you have nothing running on the

Error: functions predoploy error: Command terminated with non-zero exit code4294963238

筅森魡賤 提交于 2019-12-24 02:56:37
问题 I am trying to deploy my firebase angular js web app functions using cmd prompt : firebase deploy --only functions however I keep getting the error code : C:\Users\deji\Desktop\TNF>firebase deploy --only functions === Deploying to 'fantasyapp-a5717'... i deploying functions Running command: npm --prefix %RESOURCE_DIR% run lint > functions@ lint C:\Users\deji\Desktop\TNF\functions > eslint . C:\Users\deji\Desktop\TNF\functions\index.js 17:5 error Expected catch() or return promise/catch-or

Firebase deploy slow and getting a warning

╄→гoц情女王★ 提交于 2019-12-23 22:17:17
问题 When I try to run `Firebase deploy', it stucks at this line of code i deploying functions i functions: ensuring necessary APIs are enabled... ✔ functions: all necessary APIs are enabled the firebase init and firebase login are doing fine but firebase deploy keeps stuck. My firebase version is 3.18.4 and im currently using ubuntu 17.10. EDIT: and after waiting for about an hour it diplays this line of code FIREBASE WARNING: auth() was canceled: Auth token is expired. Am I doing something wrong

Firestore/Firebase Emulator Not Running

て烟熏妆下的殇ゞ 提交于 2019-12-23 07:57:52
问题 I'm trying to test my functions locally using the guide listed here https://firebase.google.com/docs/functions/local-emulator I have installed the latest firebase-tools using npm install -g firebase-tools In my package.json I confirmed to be running "firebase-admin": "^7.3.0", "firebase-functions": "^2.3.1", When I try to run my functions using firebase emulators:start It gives me the below output. What am I doing wrong? Starting emulators: ["functions"] ⚠ Your requested "node" version "8"

Firebase Functions version of “Deploy to multiple environments”

ⅰ亾dé卋堺 提交于 2019-12-23 05:07:26
问题 As suggested here: "https://firebase.googleblog.com/2016/07/deploy-to-multiple-environments-with.html", one should use multiple projects (preferably name-differentiated into dev, staging, production, etc) to be able to have a test environment like that on Firebase Hosting. But again, this document speaks about this approach in the context of Firebase Hosting. Is the same to be followed for Firebase Cloud Functions, if I do not want to update my already live, "production" function before

TypeError: Cannot read property 'wanted' of undefined:

时间秒杀一切 提交于 2019-12-21 03:32:42
问题 I have been deploying functions with firebase successfully all day learning how to use it. I was trying to see what happened if I initialized another directory that deploys to the same project and had no problems until i updated my npm version and now I am getting "Unexpected error has occurred" whenever I try to deploy I have tried updating npm permission by making my own user the owner of the node_modules, bin, and share directories. I have tried uninstalling and reinstalling firebase-tools

I am not able to move the arrow keys or even select the default project while installing the firebase in mac

送分小仙女□ 提交于 2019-12-17 21:35:57
问题 I was installing firebase for Mac after firebase init command selected firebase and cli features like Databas,Hosting After pressing enter the terminal asked for project setup but here I am not able to select, enter to not even able to move the arrow keys I tried closing the terminal and then follow same installation and configuration process but getting stuck at the same step === Project Setup First, let's associate this project directory with a Firebase project. You can create multiple

Error: Could not load the default credentials (Firebase function to firestore)

百般思念 提交于 2019-12-17 19:13:50
问题 I am attempting to write an onCall function for Firebase Cloud Functions that performs advanced querying tasks on a firestore database (i.e. checking a text query up against AutoML natural lang to get a category, etc) but I keep running into a problem trying to query the database from the function: Error getting documents :: Error: Could not load the default credentials. Browse to https://cloud.google.com/docs/authentication/getting-started for more information. at GoogleAuth

Error invoking firebase function referencing local configuration variables from Firebase Functions Shell

送分小仙女□ 提交于 2019-12-14 04:06:40
问题 This is a continuation of troubleshooting this problem and a separate issue related to implementing a suggested solution. I am attempting to consume Firebase function configuration from a locally-served environment as outlined here but I get an unexpected error. I create a ".runtimeconfig.json" file within my functions directory containing this: { "auth": { "clientid": MY_CLIENT_ID, "signoutreturnto": SOME_URL, "responsetype": SOME_URL, "redirecturi": SOME_OTHER_URL, "scope": SOME_OTHER

firebase functions error: grpc_node.node was compiled against a different Node.js

核能气质少年 提交于 2019-12-13 08:21:24
问题 I just downloaded and installed a newer node v8.9.4. Then, I try to run firebase functions locally with command: firebase serve --only functions --debug I get the following node js version error: functions: Cannot start emulator. Error: The module '/usr/local/lib/node_modules/firebase-tools/node_modules/grpc/src/node/extension_binary/grpc_node.node' was compiled against a different Node.js version using NODE_MODULE_VERSION 48. This version of Node.js requires NODE_MODULE_VERSION 57. Please