Error: HTTP error: 400, Project 'my_project' is not a Firestore enabled project

18,427

Solution 1

I figured it out myself. It was just an ignorance while using the firebase console. I just had to enable the firestore beta from the console itself, under Database.

Solution 2

Are you trying to use Cloud Firestore?

  • If so, visit the database section of the console and initialize Cloud Firestore
  • If not, remove the firestore.rules file locally

Solution 3

If you’re not using Cloud Firestore, comment firestore in firebase.json

enter image description here

Solution 4

I had the same problem. The solution is this: Go to Firebase console and login there [Firebase console]. Here you will see your Recent projects. Go to your project e.g. “stepintothepresent” and then go to database at left side panel, then choose cloud firestore and then I selected the 2nd option.

Firebase Console > Your Firebase Project > Database

After that I run firebase deploy from command prompt and the result is this

Result from windows command prompt

Share:
18,427

Related videos on Youtube

Stepres stepres
Author by

Stepres stepres

Updated on January 05, 2022

Comments

  • Stepres stepres
    Stepres stepres over 2 years

    While I run the command firebase deploy I get this error:

    Error: HTTP Error: 400, Project 'my_project' is not a Firestore enabled project.

    enter image description here

    • Jiping
      Jiping about 5 years
      Thanks, saved my day. Yes, the Firestore database is not created( while the realtime database is initialized), so manually create the Firestore database using default settings, then "firebase deploy" again, OK now.
  • mewc
    mewc about 6 years
    this is good, thanks. It's literally just changing that from realtime Database to Cloud Firestore. But init some stuff and allow it to work. Thanks