angularfire icon indicating copy to clipboard operation
angularfire copied to clipboard

Installing @angular/fire in a new Angular 16 project

Open francesco-buscicchio opened this issue 3 years ago • 13 comments

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"

Cattura

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

Cattura

Expected behavior

That the package be installed and the configuration initialized

Actual behavior

Adding the package goes into error

francesco-buscicchio avatar May 10 '23 15:05 francesco-buscicchio

This issue does not seem to follow the issue template. Make sure you provide all the required information.

google-oss-bot avatar May 10 '23 15:05 google-oss-bot

@francesco-buscicchio AngularFire 7.5 isn't compatible with Angular 16. See this issue.

johnfewell avatar May 10 '23 18:05 johnfewell

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.

mnc12004 avatar May 12 '23 00:05 mnc12004

Is there any information about the version, when this issue will be fixed?

timonohe avatar May 15 '23 12:05 timonohe

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

francesco-buscicchio avatar May 15 '23 12:05 francesco-buscicchio

Facing the same issue on new project. I hope it will be resolved soon.

virendrapalsingh avatar May 17 '23 13:05 virendrapalsingh

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: @.***>

hello99world99 avatar May 17 '23 14:05 hello99world99

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 avatar May 17 '23 19:05 Mikael-Sundstrom

@Mikael-Sundstrom It worked! Thank you very much.

virendrapalsingh avatar May 18 '23 05:05 virendrapalsingh

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.

Jbz797 avatar May 18 '23 08:05 Jbz797

Any updates? it's blocking me from migrating to Angular 16

georgelviv avatar May 18 '23 08:05 georgelviv

Is this project dead now then? As no one is updating it to the latest version of Angular

Harris6144 avatar May 26 '23 08:05 Harris6144

Fixed in 7.6.0, which should be released momentarily

jamesdaniels avatar May 27 '23 03:05 jamesdaniels