Installing @angular/fire in a new Angular 16 project
Version info
Angular: 16.0.0
How to reproduce these conditions
I created a new project in Angular 16, it was required that I install @angular/fire however when I proceed with ng add it goes to error reporting me that "was found but does not support schematics"
So as reported in issue no. 3348 (https://github.com/angular/angularfire/issues/3348) I tried inserting the "overrides" property inside package.json. Before installing but without success
Expected behavior
That the package be installed and the configuration initialized
Actual behavior
Adding the package goes into error
This issue does not seem to follow the issue template. Make sure you provide all the required information.
@francesco-buscicchio AngularFire 7.5 isn't compatible with Angular 16. See this issue.
Probably not the right way to go about it, but this worked for me.
I updated @angular/fire/package.json
"peerDependencies": {
"@angular/common": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
"@angular/core": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
"@angular/platform-browser": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
"@angular/platform-browser-dynamic": "^12.0.0 || ^13.0.0 || ^14.0.0 || ^15.0.0 || ^16.0.0",
"rxjs": "~6.6.0 || ^7.0.0",
"firebase-tools": "^9.9.0 || ^10.0.0 || ^11.0.0"
},
and added the suggested overrides option after dependencies and the app worked fine.
Is there any information about the version, when this issue will be fixed?
Is there any information about the version, when this issue will be fixed?
I'm not aware of it, but I hope it's as soon as possible
Facing the same issue on new project. I hope it will be resolved soon.
It is about the angular 16
On Wed, May 10, 2023 at 3:11 PM Francesco Buscicchio < @.***> wrote:
Version info
Angular: 16.0.0 How to reproduce these conditions
I created a new project in Angular 16, it was required that I install @angular/fire however when I proceed with ng add it goes to error reporting me that "was found but does not support schematics"
[image: Cattura] https://user-images.githubusercontent.com/81358077/237433816-933484d7-f16a-4f47-9584-d1e7a2fd0829.PNG
So as reported in issue no. 3348 (#3348 https://github.com/angular/angularfire/issues/3348) I tried inserting the "overrides" property inside package.json. Before installing but without success
[image: Cattura] https://user-images.githubusercontent.com/81358077/237434466-c4220204-ca3a-420a-93d8-db6a3052957d.PNG Expected behavior
That the package be installed and the configuration initialized Actual behavior
Adding the package goes into error
— Reply to this email directly, view it on GitHub https://github.com/angular/angularfire/issues/3353, or unsubscribe https://github.com/notifications/unsubscribe-auth/ANXPDJPZCIH3XSKGCKJY5N3XFOV2TANCNFSM6AAAAAAX44C45M . You are receiving this because you are subscribed to this thread.Message ID: @.***>
The folloing code in package.json works for me when i install with command npm install @angular/fire instead of ng add @angular/fire.
"dependencies": {
...
},
"overrides": {
"@angular/fire": {
"@angular/common": "^16.0.1",
"@angular/core": "^16.0.1",
"@angular/platform-browser": "^16.0.1",
"@angular/platform-browser-dynamic": "^16.0.1"
}
},
@Mikael-Sundstrom It worked! Thank you very much.
It works but I still have this bug that blocks me on Angular 14: https://github.com/angular/angularfire/issues/3290
I don't want to activate skipLibCheck and I can't modify the files by hand either because I go through a CI.
Any updates? it's blocking me from migrating to Angular 16
Is this project dead now then? As no one is updating it to the latest version of Angular
Fixed in 7.6.0, which should be released momentarily