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
I was able to get this working but not by following the docs (they seem wrong).
Steps
firebase init functions
(I think this is where the typo is in the docs)genkit init
and select Firebase as "Deployment Platform"package.json
, set the firebase-admin version to12.1.0
Finally, run
firebase deploy --only functions
You have to upgrade the
firebase-tools
package to the latest version which is13.9.0
.To check the current version run:
firebase --version
Run:
npm i -g firebase-tools
to upgrade.