-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Code in schematics/deploy/builder.ts is preventing the usage of any non-default firebaseProject and firebaseHostingSite values #3077
Comments
This issue does not seem to follow the issue template. Make sure you provide all the required information. |
Error in the https://github.com/angular/angularfire/blob/master/src/schematics/utils.ts l: 100 in the function projectFromRc(...) |
Is there any workaround to this, I am scratching my head for last two days over this issue. |
Hi, I'm having the same issue |
Any solution to this problem? |
bump, any solutions? |
Any solution to this? |
I'm also looking for the solution. |
The only workaround found is to change by hand the .firebaserc and the firebase.json with the correct target |
you will need to seperate the steps that are done automatically by ng deploy yourself. Meaning building of server/browser and deploying the firebase function.
|
Any update on this? |
Version info
Angular:
13.0.3
Firebase:
0.22.0
AngularFire:
7.2.0
Other (e.g. Ionic/Cordova, Node, browser, operating system):
Node:
v16.13.0
How to reproduce these conditions
Trying to accomplish working with multiple firebase projects for deployment as per instructions here: https://stackblitz.com/edit/angular-fire-start
Steps to set up and reproduce
When I try to set the different configurations for deploy command - for example:
And then run:
ng deploy --configuration="production"
This results with error:
An unhandled exception occurred: The Firebase Project specified by your angular.json or .firebaserc is in conflict
Debug output
An unhandled exception occurred: The Firebase Project specified by your angular.json or .firebaserc is in conflict
Looking at the text I identified the issues being the lines 25 and 33 in this file:
https://github.com/angular/angularfire/blob/master/src/schematics/deploy/builder.ts
Problematic code parts:
and
I can not make the sense out of this code.
Why would you prevent deploying any other value of the configuration other the default value?
Commenting out lines 25 and 33 results in the successful deployment of the desired configuration.
Expected behaviour
Being able to configure different firebase projects and hosting sites for the same project
Actual behaviour
Throwing errors when trying to use firebaseProject and firebaseHostingSite different from defaultFirebaseProject and defulatFirebaseHostingSite.
Edit: Duplicate of #3076 -> for some reason I thought that one was already closed
The text was updated successfully, but these errors were encountered: