nuxt-community / firebase-module

🔥 Easily integrate Firebase into your Nuxt project. 🔥
https://firebase.nuxtjs.org
MIT License
640 stars 99 forks source link

Issue installing #639

Open CHEWX opened 1 year ago

CHEWX commented 1 year ago

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: website.com@1.0.0
npm ERR! Found: firebase@8.10.1
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/firebase@8.2.2
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
vinosamari commented 1 year ago

@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.

CHEWX commented 1 year ago

Likewise, but frustrating to need to research this.

vinosamari commented 1 year ago

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

frizurd commented 1 year ago

@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/firebase@8.2.0

skyler-saville commented 1 year ago

npm install @nuxtjs/firebase@8.2.0

That did the trick!