New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Firebase Deploy Command Failed (Error Must supply either "site" or "target" in each "hosting" config.) #2003
Comments
Okay, something weird must've been happening because I just ran |
Thanks @DragonOsman, |
Getting the same error but found a workaround. { |
Check your firebase.json file, in there there should be a
|
The main problem is having the e.g.
|
Solved!!I just re-ran |
lmao I got the same error so I decided to google it and after your reply I decided to run ng deploy again. It worked. WHAT? magic(?) |
I tried to run the command `firebase deploy" to deploy an app to Firebase but I had the error I mentioned in parentheses in the title:
This is what my .firebaserc file looks like currently:
What do I do here to fix the error? I tried adding
"target":
before"phonestore-4e40c"
(it would become"target": "phonestore-4e40c"
) but that didn't work either; it gave me this error:(This is almost the same as the one I got when I ran just
firebase deploy
; the only thing new is the line about a JSON error).Any help with this is much appreciated. (Note: The reason I didn't open a "Bug Report" issue is that I wasn't sure if my issue qualifies as a bug report.)
Before that I had tried the
ng deploy
command since I was following the Angular Getting Started Tutorial and had gotten to the deployment part after following the whole thing (here). I'd chosen to deploy it to Firebase after downloading it to my computer. The result of that was this:Would be good if I could get this to work. If not, then the
firebase deploy
command working would be good too.The text was updated successfully, but these errors were encountered: