twobin / twobin/react-lazyload
Installation with react 17 fails
- Dominant language
- JavaScript
- Stars
- 5.9k
- Forks
- 485
- PR merge metrics
- No merged PRs in 30d
Description
I created a simple test project with react and react-dom.
Here's my package.json:
```
{
"name": "test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"dependencies": {
"react": "^17.0.1",
"react-dom": "^17.0.1"
}
}
```
Then running the command `npm install react-lazyload` fails
> npm ERR! code ERESOLVE
> npm ERR! ERESOLVE unable to resolve dependency tree
> npm ERR!
> npm ERR! While resolving: test@1.0.0
> npm ERR! Found: react@17.0.1
> npm ERR! node_modules/react
> npm ERR! react@"^17.0.1" from the root project
> npm ERR!
> npm ERR! Could not resolve dependency:
> npm ERR! peer react@"^0.14.0 || ^15.0.0 || ^16.0.0" from react-lazyload@3.1.0
> npm ERR! node_modules/react-lazyload
> npm ERR! react-lazyload@"*" 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.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.