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

[8.4.1] peerDependency warnings when installed with yarn@1/npm@7 #4789

Closed
AviVahl opened this issue Apr 14, 2021 · 3 comments · Fixed by #4808
Closed

[8.4.1] peerDependency warnings when installed with yarn@1/npm@7 #4789

AviVahl opened this issue Apr 14, 2021 · 3 comments · Fixed by #4808
Assignees

Comments

@AviVahl
Copy link

AviVahl commented Apr 14, 2021

[REQUIRED] Describe your environment

  • Operating System version: Fedora 33
  • Browser version: Irrelevant
  • Firebase SDK version: 8.4.1
  • Firebase Product: just the main js sdk package (firebase in npm)

[REQUIRED] Describe the problem

When installing the latest firebase using yarn, the following warnings appear:

warning "firebase > @firebase/auth > @firebase/[email protected]" has incorrect peer dependency "@firebase/[email protected]".
warning "firebase > @firebase/database > @firebase/[email protected]" has incorrect peer dependency "@firebase/[email protected]".

Steps to reproduce:

Assuming yarn@1 is installed.

mkdir fbtest
cd fbtest
yarn init -y
yarn add firebase
@google-oss-bot
Copy link
Contributor

I couldn't figure out how to label this issue, so I've labeled it for a human to triage. Hang tight.

@AviVahl AviVahl changed the title [8.4.1] peerDependency warnings when installed with yarn [8.4.1] peerDependency warnings when installed with yarn@1/npm@7 Apr 14, 2021
@AviVahl
Copy link
Author

AviVahl commented Apr 14, 2021

npm@7 prints these warnings:

npm WARN ERESOLVE overriding peer dependency
npm WARN Found: @firebase/[email protected]
npm WARN node_modules/@firebase/util
npm WARN   @firebase/util@"1.0.0" from [email protected]
npm WARN   node_modules/firebase
npm WARN     firebase@"^8.4.1" from the root project
npm WARN   10 more (@firebase/analytics, @firebase/app, ...)
npm WARN 
npm WARN Could not resolve dependency:
npm WARN peer @firebase/util@"0.x" from @firebase/[email protected]
npm WARN node_modules/@firebase/auth-interop-types
npm WARN   @firebase/auth-interop-types@"0.1.5" from @firebase/[email protected]
npm WARN   node_modules/@firebase/database

@looptheloop88
Copy link

Hi @AviVahl, thanks for reporting this. I was able to replicate the issue. There seems to be a glitch in our release script, but it should be fixed in the next release.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants