Closed saurabh1234 closed 3 years ago
Hi, do you solve this issue or found a workaround?
@levonka No Sir. Waiting from angular fire dev side to comment. :)
I have a similar problem, but deploy breaks when I add AngularFirestoreModule
The problem is that the deployment pipeline generates a new package.json
file inside the distribution folder, but it doesn't contain @firebase/app
. The only workaround that I've found is to write it manually.
Any ideas when this will be fixed or if the team is already fixing this ?
I am having the exact same problem, missing @firebase/app
from package.json
inside the created dist. When running ng deploy
Just add @firebase/app
in angular.json
then will added in new generated package.json
Like this:
"options": {
....
"externalDependencies": [
"@firebase/firestore",
"@firebase/app"
]
}
Just add
@firebase/app
inangular.json
then will added in new generatedpackage.json
Like this:
"options": { .... "externalDependencies": [ "@firebase/firestore", "@firebase/app" ] }
I've already tried that, setting the externalDependencies
option in both deploy
and server
. It doesn't work, at least in my case.
i have only added @firebase/app
in server
and it's worked for me.
@firebase/firestore
is automaticaly added by schematics
Externals should be handled by our schematics appropriately now.
When using Angular SSR + Angular fire auth module the
ng deploy
is failing on firebase function deployment side. Local (ng serve) works fine . If you removeAngularFireAuthModule
then the deployment is fine.I believe it has been reported in this https://github.com/firebase/firebase-js-sdk/issues/1250#issuecomment-445382554 but not sure how to get it resolve it in 6.0.0 angularfire
Version info
Angular: "@angular/core": "9.1.4",
Firebase: "firebase": "^7.14.2",
AngularFire: "@angular/fire": "^6.0.0",
Steps to set up and reproduce
Create a fresh angular project. Use the following package.json and run ng deploy. Don't forget to configure firebase account.
Use the following module
Adding AngularFireAuthModule breaks the deployment. Remove it and deploy will be okay.
run
ng deploy
( launched with 6.0.0 angular fire . Defined here https://github.com/angular/angularfire/blob/master/docs/deploy/getting-started.mdSample data and security rules
Debug output
Firebase function logs
Expected behavior
Deployment should work fine.
Actual behavior
Deployment failing during app deployment in firebase functions