ifndefdeadmau5 / react-floating-button-menu

A customizable floating action button menu that follows material design
https://ifndefdeadmau5.github.io/react-floating-button-menu/
46 stars 15 forks source link

Installing in react 17.0.2 #58

Open advicepharma opened 2 years ago

advicepharma commented 2 years ago

Running the installation in an app that is using react 17.0.2 gives this message:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: material-app@3.1.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR!   react@"17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^16.0.0" from react-floating-button-menu@2.1.1
npm ERR! node_modules/react-floating-button-menu
npm ERR!   react-floating-button-menu@"2.1.1" 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 C:\Users\giacomo.garavaglia\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\giacomo.garavaglia\AppData\Local\npm-cache\_logs\2021-12-23T14_35_38_519Z-debug.log
osmium-dev-old commented 2 years ago

Same here!

osmium-dev-old commented 2 years ago

I fixed it by doing npm install react-floating-button-menu --force

MartinJohannesNilsen commented 2 years ago

Still hoping this dependency could be resolved as it works with react 17, and yields a warning every time I install another package.