Skip to content

Update React dependency to 18 #210

@herlon214

Description

@herlon214

Hello, I moved to react 18 and would like to know if there's a chance of updating the React version here to 18 instead of 17.

I saw this PR #164 but it got closed and wasn't merged. Is there any reason?

I think this is the line that is causing the error:

"react": "^16.9.0 || ^17.0.0"

The error my npm i is showing:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: bandsnear@0.1.1
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@"^16.9.0 || ^17.0.0" from usehooks-ts@2.7.0
npm ERR! node_modules/usehooks-ts
npm ERR!   usehooks-ts@"^2.6.0" 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/herlon/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/herlon/.npm/_logs/2022-09-19T17_52_12_635Z-debug-0.log
 

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions