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

npm WARN [email protected] requires a peer of firebase@^3.5.2 || ^4.0.0 || ^5.0.0 #46

Open
douglasrcjames opened this issue Mar 25, 2020 · 4 comments

Comments

@douglasrcjames
Copy link

When installing with npm, I am getting this warning on and would like to clear it:
npm WARN [email protected] requires a peer of firebase@^3.5.2 || ^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself. I have ran npm install firebase, and warning still appears. Any idea on how to clear this?

package.json

{
  "name": "test-app-name",
  "version": "0.1.0",
  "private": true,
  "dependencies": {
    "firebase": "^7.12.0",
    "formik": "^2.0.3",
    "google-libphonenumber": "^3.2.7",
    "mkdirp": "^1.0.3",
    "react": "^16.11.0",
    "react-burger-menu": "^2.6.11",
    "react-confirm": "^0.1.18",
    "react-dnd": "^5.0.0",
    "react-dnd-html5-backend": "^3.0.2",
    "react-dom": "^16.11.0",
    "react-firebase-file-uploader": "^2.4.3",
    "react-flexbox-grid": "^2.1.2",
    "react-ga": "^2.7.0",
    "react-icons": "^3.8.0",
    "react-modal": "^3.11.1",
    "react-responsive": "^8.0.1",
    "react-router-dom": "^5.1.2",
    "react-scripts": "^3.4.0",
    "react-star-ratings": "^2.3.0",
    "react-stripe-elements": "^6.0.1",
    "react-sweet-progress": "^1.1.2",
    "react-toastify": "^5.4.0",
    "react-with-separator": "^1.2.0",
    "twilio-video": "^2.0.1",
    "typescript": "^3.8.3",
    "yup": "^0.27.0"
  },
  "scripts": {
    "start": "react-scripts start",
    "build": "react-scripts build",
    "test": "react-scripts test",
    "eject": "react-scripts eject"
  },
  "eslintConfig": {
    "extends": "react-app"
  },
  "browserslist": {
    "production": [
      ">0.2%",
      "not dead",
      "not op_mini all"
    ],
    "development": [
      "last 1 chrome version",
      "last 1 firefox version",
      "last 1 safari version"
    ]
  }
}

@tatojoel1
Copy link

I have the same issue too.
I tried to do some examples in June 13, 2020.
There is a message of the error:
Could not find a declaration file for module 'react-firebase-file-uploader'

@ghost
Copy link

ghost commented Dec 2, 2020

Same here....

module "/home/user/Escritorio/mern/project-nextjs/node_modules/react-firebase-file-uploader/lib/index"
Could not find a declaration file for module 'react-firebase-file-uploader'. '/home/edagurcia/Escritorio/mern-guia-completa/producthunt-nextjs/node_modules/react-firebase-file-uploader/lib/index.js' implicitly has an 'any' type.
Try npm install @types/react-firebase-file-uploader if it exists or add a new declaration (.d.ts) file containing declare module 'react-firebase-file-uploader';ts(7016)

@wilmerterrero
Copy link

I resolved this problem with: npm i react-firebase-file-uploader --legacy-peer-deps

@acailly
Copy link

acailly commented Sep 23, 2022

I resolved this issue by overriding the dependency resolution :

"overrides": {
    "firebase": [the version of firebase you use]
  }

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

No branches or pull requests

4 participants