firebase-module icon indicating copy to clipboard operation
firebase-module copied to clipboard

Issue installing

Open CHEWX opened this issue 2 years ago • 5 comments

Version

@nuxtjs/firebase: 8.2.2 firebase: 8.10.1 nuxt: 2.15.8

— npm i @nuxtjs/firebase
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: [email protected]
npm ERR! Found: [email protected]
npm ERR! node_modules/firebase
npm ERR!   firebase@"^8.10.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer firebase@"^9.6.2" from @nuxtjs/[email protected]
npm ERR! node_modules/@nuxtjs/firebase
npm ERR!   @nuxtjs/firebase@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/tom/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/tom/.npm/_logs/2023-02-06T13_18_34_928Z-debug-0.log

CHEWX avatar Feb 06 '23 13:02 CHEWX

@CHEWX I just had the same issue and came to complain about it. @nuxtjs/firebasev8 requires firebasev9 and that's what's throwing the error. I got around it by running npm install @nuxtjs/firebase@^7.6.1. That's the last compatible version with version 8 apparently.

vinosamari avatar Mar 15 '23 18:03 vinosamari

Likewise, but frustrating to need to research this.

CHEWX avatar Mar 15 '23 19:03 CHEWX

There needs to be some additional information to the docs. I should make a PR to make that easier for others. @CHEWX

vinosamari avatar Mar 18 '23 00:03 vinosamari

@CHEWX I just had the same issue and came to complain about it. @nuxtjs/firebasev8 requires firebasev9 and that's what's throwing the error. I got around it by running npm install @nuxtjs/firebase@^7.6.1. That's the last compatible version with version 8 apparently.

Dependency was updated to v9 in the most recent version: https://github.com/nuxt-community/firebase-module/releases

So you should be able to use version 8.2.0 npm install @nuxtjs/[email protected]

frizurd avatar Apr 26 '23 07:04 frizurd

npm install @nuxtjs/[email protected]

That did the trick!

skyler-saville avatar Apr 28 '23 22:04 skyler-saville