Skip to content

not installing firebase on angular19 #3612

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

Open
pavansrinivas32 opened this issue Jan 16, 2025 · 6 comments
Open

not installing firebase on angular19 #3612

pavansrinivas32 opened this issue Jan 16, 2025 · 6 comments

Comments

@pavansrinivas32
Copy link

ng add @angular/fire
✔ Determining Package Manager
› Using package manager: npm
✔ Searching for compatible package version
› Unable to find compatible package. Using 'latest' tag.
✔ Loading package information from registry
› ⚠ Package has unmet peer dependencies. Adding the package may not succeed.
✔ Confirming installation
✖ Unable to install package

npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: [email protected]
npm error Found: @angular/[email protected]
npm error node_modules/@angular/common
npm error @angular/common@"^19.0.0" from the root project
npm error
npm error Could not resolve dependency:
npm error peer @angular/common@"^18.0.0" from @angular/[email protected]
npm error node_modules/@angular/fire
npm error @angular/fire@"18.0.1" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error C:\Users\pavan\AppData\Local\npm-cache_logs\2025-01-16T15_41_21_682Z-eresolve-report.txt
npm error A complete log of this run can be found in: C:\Users\pavan\AppData\Local\npm-cache_logs\2025-01-16T15_41_21_682Z-debug-0.log

Image

@google-oss-bot
Copy link

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

@peciulevicius
Copy link

I'm having same issue when trying to install it on angular 19

@Mayocampo
Copy link

Same issue trying to add to Project with Angular 19.1.1

`$ ng add @angular/fire
✔ Determining Package Manager
› Using package manager: npm
✔ Searching for compatible package version
› Found compatible package version: @angular/[email protected].
✔ Loading package information from registry
✔ Confirming installation
✖ Unable to install package

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: @angular/[email protected]
npm error node_modules/@angular/core
npm error peer @angular/core@"19.1.1" from @angular/[email protected]
npm error node_modules/@angular/animations
npm error peer @angular/animations@"^19.0.0 || ^20.0.0" from @angular/[email protected]
npm error node_modules/@angular/material
npm error @angular/material@"^19.1.0" from the root project
npm error peerOptional @angular/animations@"19.1.1" from @angular/[email protected]
npm error node_modules/@angular/platform-browser
npm error peer @angular/platform-browser@"19.1.1" from @angular/[email protected]
npm error node_modules/@angular/forms
npm error peer @angular/forms@"^19.0.0 || ^20.0.0" from @angular/[email protected]
npm error node_modules/@angular/material
npm error 1 more (the root project)
npm error 4 more (@angular/material, ...)
npm error 1 more (the root project)
npm error peer @angular/core@"^19.0.0 || ^20.0.0" from @angular/[email protected]
npm error node_modules/@angular/cdk
npm error peer @angular/cdk@"19.1.0" from @angular/[email protected]
npm error node_modules/@angular/material
npm error @angular/material@"^19.1.0" from the root project
npm error @angular/cdk@"^19.1.0" from the root project
npm error 9 more (@angular/common, @angular/compiler, @angular/forms, ...)
npm error
npm error Could not resolve dependency:
npm error @angular/fire@"19.0.0" from the root project
npm error
npm error Conflicting peer dependency: @angular/[email protected]
npm error node_modules/@angular/core
npm error peer @angular/core@"19.1.6" from @angular/[email protected]
npm error node_modules/@angular/platform-browser-dynamic
npm error @angular/platform-browser-dynamic@"^19.1.0" from the root project
npm error peer @angular/platform-browser-dynamic@"^19.0.0" from @angular/[email protected]
npm error node_modules/@angular/fire
npm error @angular/fire@"19.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.`

@Sourdeval
Copy link

Sourdeval commented Mar 20, 2025

Same issue here, some workaround to solve it ? I'm beginner
--force and --legacy-peer-deps didn't work

@ulver2812
Copy link

Same issue here:

ng add @angular/fire
✔ Determining Package Manager
  › Using package manager: npm
✔ Searching for compatible package version
  › Found compatible package version: @angular/[email protected].
✔ Loading package information from registry
✔ Confirming installation
✖ Unable to install package

npm error code ERESOLVE
npm error ERESOLVE could not resolve
npm error
npm error While resolving: [email protected]
npm error Found: @angular/[email protected]
npm error node_modules/@angular/core
npm error   peer @angular/core@"19.1.5" from @angular/[email protected]
npm error   node_modules/@angular/animations
npm error     peerOptional @angular/animations@"19.1.5" from @angular/[email protected]
npm error     node_modules/@angular/platform-browser
npm error       peer @angular/platform-browser@"19.1.5" from @angular/[email protected]
npm error       node_modules/@angular/forms
npm error         peer @angular/forms@">=16.0.0" from @ionic/[email protected]
npm error         node_modules/@ionic/angular
npm error         1 more (the root project)
npm error       3 more (@angular/platform-browser-dynamic, @angular/router, the root project)
npm error     @angular/animations@"^19.0.0" from the root project
npm error   peer @angular/core@"19.1.5" from @angular/[email protected]
npm error   node_modules/@angular/common
npm error     peer @angular/common@"19.1.5" from @angular/[email protected]
npm error     node_modules/@angular/forms
npm error       peer @angular/forms@">=16.0.0" from @ionic/[email protected]
npm error       node_modules/@ionic/angular
npm error         @ionic/angular@"^8.0.0" from the root project
npm error       1 more (the root project)
npm error     peer @angular/common@"19.1.5" from @angular/[email protected]
npm error     node_modules/@angular/platform-browser
npm error       peer @angular/platform-browser@"19.1.5" from @angular/[email protected]
npm error       node_modules/@angular/forms
npm error         peer @angular/forms@">=16.0.0" from @ionic/[email protected]
npm error         node_modules/@ionic/angular
npm error         1 more (the root project)
npm error       3 more (@angular/platform-browser-dynamic, @angular/router, the root project)
npm error     3 more (@angular/platform-browser-dynamic, @angular/router, the root project)
npm error   7 more (@angular/compiler, @angular/forms, ...)
npm error
npm error Could not resolve dependency:
npm error @angular/fire@"19.0.0" from the root project
npm error
npm error Conflicting peer dependency: @angular/[email protected]
npm error node_modules/@angular/core
npm error   peer @angular/core@"19.2.5" from @angular/[email protected]
npm error   node_modules/@angular/platform-browser-dynamic
npm error     @angular/platform-browser-dynamic@"^19.0.0" from the root project
npm error     peer @angular/platform-browser-dynamic@"^19.0.0" from @angular/[email protected]
npm error     node_modules/@angular/fire
npm error       @angular/fire@"19.0.0" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.

@BaronVonPerko
Copy link

I had this same issue and was able to resolve it.

Run ng update

Then, update all of the packages (these will probably just be minors/patches).

Then, run ng add @angular/fire. Hope this helps!

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

7 participants