firebase-admin-node icon indicating copy to clipboard operation
firebase-admin-node copied to clipboard

upgrade to firebase-admin v12.0.0 not resolved dependency

Open marco-mastella opened this issue 1 year ago • 1 comments

[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: [email protected] Found: [email protected] 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 [email protected] node_modules/firebase-functions firebase-functions@"^4.6.0" from the root project peer firebase-functions@">=4.3.0" from [email protected] 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 [email protected] node_modules/firebase-functions-test dev firebase-functions-test@"^3.1.0" from the root project

Conflicting peer dependency: [email protected] node_modules/firebase-admin peer firebase-admin@"^8.0.0 || ^9.0.0 || ^10.0.0 || ^11.0.0" from [email protected] 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)

marco-mastella avatar Jan 15 '24 08:01 marco-mastella

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

lahirumaramba avatar Jan 16 '24 20:01 lahirumaramba