Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cloud Functions Error: function is not a valid feature. Must be one of database,firestore,functions,hosting,storage [closed]

I am being practiced to make TelegramBot using firebase cloud function. installed firebase-tools, registered the firebase account and created a new sample project, but then I got an error when I selected the project.

This is the error message:

Function is not a valid feature. Must be one of database,firestore,functions,hosting,storage.

like image 984
Nanda Z Avatar asked Apr 25 '19 04:04

Nanda Z


People also ask

What are cloud functions Firebase?

Cloud Functions for Firebase is a serverless framework that lets you automatically run backend code in response to events triggered by Firebase features and HTTPS requests. Your JavaScript or TypeScript code is stored in Google's cloud and runs in a managed environment.


1 Answers

How silly am i, it's typo... all i need to do is to change execution syntax like below

firebase init functions

with plural "s"

like image 52
Nanda Z Avatar answered Oct 30 '22 13:10

Nanda Z