MicheleBertoli / MicheleBertoli/react-only-if

react 18 fail to install

Open
#7 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
48
Forks
6
PR merge metrics
No merged PRs in 30d

Description

after
create-react-app
react v.18

Run Command:
npm i --save react-only-if

Error: ─╯
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: myapp@0.1.0
npm ERR! Found: react@18.2.0
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.0.1" from react-only-if@1.0.0
npm ERR! node_modules/react-only-if
npm ERR! react-only-if@"*" 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

Research direction

Reproduce the reported npm i --save react-only-if failure in a create-react-app project using React 18.2.0, then inspect the package metadata and its declared React peer dependency. Done means the dependency conflict is addressed and installation succeeds without force or legacy-peer-deps.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, react
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.