loktar00 / react-lazy-load

React component that renders children elements when they enter the viewport.
MIT License
979 stars 166 forks source link

NPM Installation Error in React@17+ #148

Closed HeppyAndriawan closed 2 years ago

HeppyAndriawan commented 2 years ago

I've got this error while installing the package and it says:

Could not resolve dependency: npm ERR! peer react@"^0.14.0 || ^15.0.0-0 || ^16.0.0" from react-lazy-load@3.1.13 npm ERR! node_modules/react-lazy-load npm ERR! react-lazy-load@"*" 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.

ChrisTav424 commented 2 years ago

I'm getting the same, be interested to know the outcome

Baspa commented 2 years ago

I got the same error. I am on react version ^17.0.2

douglasrcjames commented 2 years ago

Bump, I guess I wont be using this library either lol :/

amillward commented 2 years ago

See https://github.com/loktar00/react-lazy-load/pull/146

It looks like this library is no longer being maintained

loktar00 commented 2 years ago

Should be good to go now, merged the commit, also got rid of a previous error as well. Newest vs is 3.1.14