react-firebase-file-uploader icon indicating copy to clipboard operation
react-firebase-file-uploader copied to clipboard

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

Open douglasrcjames opened this issue 4 years ago • 4 comments

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"
    ]
  }
}

douglasrcjames avatar Mar 25 '20 23:03 douglasrcjames

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'

tatojoel1 avatar Jun 13 '20 08:06 tatojoel1

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)

ghost avatar Dec 02 '20 21:12 ghost

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

wilmerterrero avatar Jan 22 '21 14:01 wilmerterrero

I resolved this issue by overriding the dependency resolution :

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

acailly avatar Sep 23 '22 14:09 acailly