skip to Main Content

I am following the Genkit with Firebase Cloud Functions tutorial and I’m getting the following error when running firebase init genkit:

genkit is not a supported feature; must be one of database, firestore, functions, hosting, hosting:github, storage, emulators, remoteconfig, extensions, frameworks.

I opened an issue here: https://github.com/firebase/genkit/issues/180

2

Answers


  1. Chosen as BEST ANSWER

    I was able to get this working but not by following the docs (they seem wrong).

    Steps

    1. Create a new project folder
    2. Run firebase init functions (I think this is where the typo is in the docs)
    3. cd into the functions folder
    4. Run genkit init and select Firebase as "Deployment Platform"
    5. In package.json, set the firebase-admin version to 12.1.0
    "firebase-admin": "12.1.0",
    

    Finally, run firebase deploy --only functions

    enter image description here


  2. You have to upgrade the firebase-tools package to the latest version which is 13.9.0.

    To check the current version run: firebase --version

    Run: npm i -g firebase-tools to upgrade.

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search