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

upgrade to firebase-admin v12.0.0 not resolved dependency #2423

Closed
marco-mastella opened this issue Jan 15, 2024 · 1 comment · Fixed by firebase/firebase-functions-test#220
Assignees

Comments

@marco-mastella
Copy link

[REQUIRED] Step 2: Describe your environment

Attached my package.json file
package.json
SO: Windows 10 Home

[REQUIRED] Step 3: Describe the problem

After the install of lastest version of firebase-admin (v12.0.0) on npm install it shows and error for not resolved dependency.

npm resolution error report

While resolving: firebase-functions-test@3.1.0
Found: firebase-admin@12.0.0
node_modules/firebase-admin
firebase-admin@"^12.0.0" from the root project
peer firebase-admin@"^10.0.0 || ^11.0.0 || ^12.0.0" from firebase-functions@4.6.0
node_modules/firebase-functions
firebase-functions@"^4.6.0" from the root project
peer firebase-functions@">=4.3.0" from firebase-functions-test@3.1.0
node_modules/firebase-functions-test
dev firebase-functions-test@"^3.1.0" from the root project

Could not resolve dependency:
peer firebase-admin@"^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0" from firebase-functions-test@3.1.0
node_modules/firebase-functions-test
dev firebase-functions-test@"^3.1.0" from the root project

Conflicting peer dependency: firebase-admin@11.11.1
node_modules/firebase-admin
peer firebase-admin@"^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0" from firebase-functions-test@3.1.0
node_modules/firebase-functions-test
dev firebase-functions-test@"^3.1.0" from the root project

Fix the upstream dependency conflict, or retry
this command with --force or --legacy-peer-deps
to accept an incorrect (and potentially broken) dependency resolution.

i already opened the Case 10265821 and Firebase team answered to open an issue

Steps to reproduce:

install firebase-admin (v12.0.0)

@lahirumaramba
Copy link
Member

Thank you, @marco-mastella for reporting this issue. This needs to be addressed in the firebae-funcitons-test repo. The team will add support for firebase-admin v12 https://github.com/firebase/firebase-functions-test/blob/8cc337f038f2a56f0495886a11cd24ca02312ca8/package.json#L59

FYI @taeold

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

Successfully merging a pull request may close this issue.

3 participants