firebase-tools

“firebase serve --only functions” doesn't work

∥☆過路亽.° 提交于 2021-02-19 04:43:30
问题 $ firebase serve --only functions ⚠ Your requested "node" version "8" doesn't match your global version "12" Error: TIMEOUT: Port 5000 was not active within 30000ms but when serve hosting will success $ firebase serve --only hosting i hosting: Serving hosting files from: dist/chongsheng-jp ✔ hosting: Local server: http://localhost:5000 I thought that I didn't compile index.ts, I tried npm run serve following firebase official doc but It doesn't work. Please help me. Here is my versions.

Could not find a declaration file for module 'firebase-tools'

女生的网名这么多〃 提交于 2021-02-18 03:19:41
问题 I am writing my first cloud function for Firebase and it requires the firebase-tools module. I've installing it by adding it to my dependencies in the package.json file and running npm install . Then I tried to import it using import * as tools from 'firebase-tools'; , but I get this error: Could not find a declaration file for module 'firebase-tools'. 'c:/Users/LENOVO/Nouveau dossier/functions/node_modules/firebase-tools/lib/index.js' implicitly has an 'any' type. Try npm install @types

Could not find a declaration file for module 'firebase-tools'

大憨熊 提交于 2021-02-18 03:18:27
问题 I am writing my first cloud function for Firebase and it requires the firebase-tools module. I've installing it by adding it to my dependencies in the package.json file and running npm install . Then I tried to import it using import * as tools from 'firebase-tools'; , but I get this error: Could not find a declaration file for module 'firebase-tools'. 'c:/Users/LENOVO/Nouveau dossier/functions/node_modules/firebase-tools/lib/index.js' implicitly has an 'any' type. Try npm install @types

Could not find a declaration file for module 'firebase-tools'

随声附和 提交于 2021-02-18 03:17:52
问题 I am writing my first cloud function for Firebase and it requires the firebase-tools module. I've installing it by adding it to my dependencies in the package.json file and running npm install . Then I tried to import it using import * as tools from 'firebase-tools'; , but I get this error: Could not find a declaration file for module 'firebase-tools'. 'c:/Users/LENOVO/Nouveau dossier/functions/node_modules/firebase-tools/lib/index.js' implicitly has an 'any' type. Try npm install @types

What IAM roles are needed for deploying to Firebase Hosting?

こ雲淡風輕ζ 提交于 2021-02-10 18:27:24
问题 I am trying to give permissions to a third party to make deployments to Firebase Hosting on a project I have set up. I explored the IAM permissions available in the GCP console, and the only half-related role seems to be the Firebase Rules System , however that didn't allow the user to deploy to hosting. While Project Editor would probably work, I don't want to give them that much authority, as they could launch other Firebase products at my expense. What IAM roles should I add to allow a

What IAM roles are needed for deploying to Firebase Hosting?

陌路散爱 提交于 2021-02-10 18:19:38
问题 I am trying to give permissions to a third party to make deployments to Firebase Hosting on a project I have set up. I explored the IAM permissions available in the GCP console, and the only half-related role seems to be the Firebase Rules System , however that didn't allow the user to deploy to hosting. While Project Editor would probably work, I don't want to give them that much authority, as they could launch other Firebase products at my expense. What IAM roles should I add to allow a

Create a user programatically using Firebase Auth emulator

纵饮孤独 提交于 2021-01-29 10:23:05
问题 I am trying to write jest tests using the Firebase Auth emulator and continue to receive the following CORS error. console.error Error: Headers X-Client-Version forbidden at dispatchError (/Users/me/my-project/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:62:19) at validCORSPreflightHeaders (/Users/me/my-project/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:99:5) at Request.<anonymous> (/Users/me/my-project/node_modules/jsdom/lib/jsdom/living/xhr/xhr-utils.js:367:12) at Request

How to setup test data when testing Firestore in XCode with Firebase Emulator?

放肆的年华 提交于 2021-01-28 19:16:15
问题 I have been trying to setup Firebase Emulator with test data for days. What I have done? I have successfully deployed Firebase Emulators I have written a test which checks for a value in the emulated Firestore and the test passes as well. func test_WhenPartyNameIsUnique_ThenErrorIsNil() { // given let exp = self.expectation(description: "Waiting for Firebase Emulator") // when self.sut.isUnique(partyName: "akshit") { (error) in // then XCTAssertNil(error) exp.fulfill() } self

Firebase command not found days after having already successfully used it

徘徊边缘 提交于 2021-01-02 20:41:45
问题 I am trying to use the 'firebase' command from my Mac terminal to deploy firebase cloud functions using 'firebase deploy --only functions'. I just used this command a week or two ago when I updated my firebase-functions and firebase-tools to version 3.18.4 but now everytime I try to use the 'firebase' keyword to run a command it says -bash: firebase: command not found . When I run npm -g list I see that I have firebase, firebase-tools and more in that list. I've tried running 'npm install -g

Firebase command not found days after having already successfully used it

[亡魂溺海] 提交于 2021-01-02 20:40:38
问题 I am trying to use the 'firebase' command from my Mac terminal to deploy firebase cloud functions using 'firebase deploy --only functions'. I just used this command a week or two ago when I updated my firebase-functions and firebase-tools to version 3.18.4 but now everytime I try to use the 'firebase' keyword to run a command it says -bash: firebase: command not found . When I run npm -g list I see that I have firebase, firebase-tools and more in that list. I've tried running 'npm install -g