devcshort / react-hls

Simple React component for playing hls/rtmp live streams.
https://www.npmjs.com/package/react-hls-player
MIT License
118 stars 48 forks source link

react 17 support #34

Open IbrahimShamma99 opened 2 years ago

IbrahimShamma99 commented 2 years ago

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: hls-player@undefined 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.13.1" from react-hls-player@3.0.7 npm ERR! node_modules/react-hls-player npm ERR! react-hls-player@"*" 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/ibrahimabushammah/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/ibrahimabushammah/.npm/_logs/2021-11-12T17_24_37_235Z-debug.log

Fyb3roptik commented 2 years ago

getting this too. F

VWXmeisold commented 2 years ago

Same issue here. Any thoughts?

ondrovic commented 2 years ago

this is more than likely because it's setup to only support this you can either change your node version or you can attempt to update the peerDepedencies to support the latest version

"peerDependencies": {
    "react": "^16.13.1",
    "react-dom": "^16.13.1"
  },
kumquat601 commented 1 year ago

try again after execute this code

npm config set legacy-peer-deps true