Firebase installation error and empty fiebase.json file

I Follow This Guide Getting Started with Firebase Hosting on the Internet - Firecasts

I am trying to host a simple index.html file in firebase, but when I type firebase deploy it causes the following error:

No goals found. Acceptable goals are: database, storage, functions, hosting. image hosting error

I found that my firebase.json file is empty, it contains only {} .

+5
source share
2 answers

run firebase init again.

When you are asked - What features of CLI Firebase do you want to configure for this folder?

Press "Space" to highlight functions , this will mark this function with an asterisk .

Then enter to confirm your choice.

Make sure you select the options by pressing the spacebar, then press enter.

+37
source

run firebase init , and if your firebase.json is only empty with {} , add

  { "hosting": { "public": "public", "ignore": [ "firebase.json", "**/.*", "**/node_modules/**" ] } } 

replace "public": "app" with "public": "public"

then run firebase deployment

0
source

Source: https://habr.com/ru/post/1268459/


All Articles