angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

ng deploy still doesn't work

Open Harris6144 opened this issue 1 year ago • 37 comments

Hello,

Are there any plans to fix ng deploy. As it hasn't worked for a while now. The Angular documentation still says it should for deployment.

Thanks, Harris

Harris6144 avatar Oct 21 '25 13:10 Harris6144

If there was an error message, I would have posted one.

Harris6144 avatar Dec 01 '25 20:12 Harris6144

Okay, so to summarize:

  • You aren't getting an error
  • ng deploy "isn't working" because it is somehow just running ng add @angular/fire again instead of "deploying to Firebase"
  • When you run this on your machine, there is literally nothing else that happens on screen that could help someone try to help you resolve this?

Do I have this right?

jakehockey10 avatar Dec 01 '25 20:12 jakehockey10

Would a video help?

A video would still help if you literally don't have anything else you think you can share.

jakehockey10 avatar Dec 01 '25 20:12 jakehockey10

No, you don't have that right.

The original functionality was that when you typed ng deploy, it would ask you to select a project, etc, then it would deploy it. Now it just finishes the command without doing anything.

Harris6144 avatar Dec 01 '25 20:12 Harris6144

Thank you for clarifying. A video would still be helpful.

Are you sure there isn't any way to get more verbose output from the command?

It's not working for any new setup. If I start a fresh new Angular project then use ng add @angular/fire, hosting isn't an option. So when you run ng deploy, it just runs ng add @angular/fire again.

Do you see why I was confused? You claimed it runs the ng add @angular/fire command again. Now you are saying it doesn't output anything. So now we have to assume that maybe there is some logging somewhere with more information in it. Can you look for a verbose flag or any log files that were created with some more info?

jakehockey10 avatar Dec 01 '25 20:12 jakehockey10

Sorry, it does come up with ng add options again before finishing without the deploy.

Harris6144 avatar Dec 01 '25 20:12 Harris6144

By finishing the command, I meant finishing the ng add command.

Harris6144 avatar Dec 01 '25 20:12 Harris6144

Alright. I feel like I'm being trolled here. If you send a video, that'd be helpful. But I can't help you without more information. And if you literally don't have any more information, then I guess we are done here.

jakehockey10 avatar Dec 01 '25 20:12 jakehockey10

I feel the same.

All you have to do is start a new angular project, try add angularfire, try ng deploy and you'll see that it doesn't deploy the Angular app to Firebase.

Harris6144 avatar Dec 01 '25 20:12 Harris6144

Looks like I can't share videos here.

Harris6144 avatar Dec 01 '25 20:12 Harris6144

Image

Here is the additional information I needed. Do you see this warning? Here is the documentation I was telling you to go look at: https://github.com/angular/angularfire/blob/main/docs/deploy/getting-started.md.

This warning is telling you something is missing from your project. The link I shared is telling you what needs to go there to overcome this warning.

You are correct, the Angular documentation is misleading (like I said above). But that's not this library's fault.

jakehockey10 avatar Dec 01 '25 20:12 jakehockey10

Well clearly that's what's broken then as it use to work.

Harris6144 avatar Dec 01 '25 20:12 Harris6144

LOL I give up man. If this is how much work you think should go into a bug report, then you'll get as much response as you deserve

jakehockey10 avatar Dec 01 '25 20:12 jakehockey10

I'm glad you're giving up. You've been rude and condescending from the start.

You've literally just replicated the issue yourself and still treating me like an idiot and accusing me of doing it wrong.

Harris6144 avatar Dec 01 '25 20:12 Harris6144

I'm sorry you feel that way. I've tried to maintain the following throughout this conversation:

  • ng deploy is a bit of a complicated matter as it can involve deploying more than just a client side angular application. Firebase involves more than just Hosting a SPA app, which is why I was trying to get a better idea of your current situation
    • There are more robust strategies for deploying firebase applications, and maybe moving away from ng deploy isn't a bad thing.
  • Your report doesn't provide any information that helps the authors and contributors of this library find the cause of the issue because the issue isn't well documented.
    • The more effort you put into a bug report, the more likely you'll get someone to do the work of investigation and resolution, for free.
  • The Angular.Dev documentation is NOT the official documentation for this library. So maybe the assumption that ng add @angular/fire and then ng deploy still working is an assumption that should not be assumed any more.

I should have not taken my frustrations with your bug report out on you. You are free to just open a ticket that says, "This isn't working still" and not try to look into it beyond that. But I hope you understand that I was indeed trying to help, and if I came off as rude, that is on me for not expressing myself in a patient way. Your responses were indeed frustrating as it was obvious you weren't reading them fully and that you weren't willing to do any investigative work on your own for an open source library. But again, that's on me for letting it get to me that bad.

jakehockey10 avatar Dec 01 '25 20:12 jakehockey10

I just created a new angular app and added angular fire and ng deploy works correctly on my end (it publishes the app in the firebase hosting if that's what you need). Do you have the .firebasesrc and firebase.json files properly configured so that the command knows what needs to be deployed and where?

sergiotome avatar Jan 15 '26 16:01 sergiotome

I knew it was supposed to work!

No, the Angular or Angularfire docs neither say anything about configuration files. What are they meant to be?

Harris6144 avatar Jan 16 '26 09:01 Harris6144