An open source framework for building AI-powered apps with familiar code-centric patterns. Genkit makes it easy to integrate, test, and deploy sophisticated AI features to Firebase or Google Cloud.
Apache License 2.0
607
stars
74
forks
source link
[JS] `Unable to detect a Project Id in the current environment` error with firebase login #618
Trying to genkit start an app using firebase() plugin locally without first gcloud auth application-default logining (which is normal/common) results in the following error:
Initializing plugin firebase:
/tmp/e2e-run-1720977892092/node_modules/.pnpm/google-auth-library@9.11.0_encoding@0.1.13/node_modules/google-auth-library/build/src/auth/googleauth.js:147
throw new Error(GoogleAuthExceptionMessages.NO_PROJECT_ID_FOUND);
^
Error: Unable to detect a Project Id in the current environment.
To learn more about authentication and Google APIs, visit:
https://cloud.google.com/docs/authentication/getting-started
at GoogleAuth.findAndCacheProjectId (/tmp/e2e-run-17[209](https://github.com/firebase/genkit/actions/runs/9929538652/job/27427244445#step:9:210)77892092/node_modules/.pnpm/google-auth-library@9.11.0_encoding@0.1.13/node_modules/google-auth-library/build/src/auth/googleauth.js:147:19)
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
Trying to
genkit start
an app usingfirebase()
plugin locally without firstgcloud auth application-default login
ing (which is normal/common) results in the following error: