Skip to content
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

Installing @angular/fire in a new Angular 16 project #3353

Closed
francesco-buscicchio opened this issue May 10, 2023 · 13 comments
Closed

Installing @angular/fire in a new Angular 16 project #3353

francesco-buscicchio opened this issue May 10, 2023 · 13 comments

Comments

@francesco-buscicchio
Copy link

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 (#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

@google-oss-bot
Copy link

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

@johnfewell
Copy link

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

@mnc12004
Copy link

mnc12004 commented May 12, 2023

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.

@timonohe
Copy link

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

@francesco-buscicchio
Copy link
Author

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

@virendrapalsingh
Copy link

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

@hello99world99
Copy link

hello99world99 commented May 17, 2023 via email

@Mikael-Sundstrom
Copy link

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"
	}
},

@virendrapalsingh
Copy link

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

@Jbz797
Copy link

Jbz797 commented May 18, 2023

It works but I still have this bug that blocks me on Angular 14: #3290
I don't want to activate skipLibCheck and I can't modify the files by hand either because I go through a CI.

@georgelviv
Copy link

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

@Harris6144
Copy link

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

@jamesdaniels
Copy link
Member

Fixed in 7.6.0, which should be released momentarily

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests