bonafideduck / react-highlight-within-textarea

React component for highlighting bits of text within a textarea
93 stars 13 forks source link

React 18 - Could not resolve dependency #184

Closed Gusakovskyi closed 6 months ago

Gusakovskyi commented 6 months ago

When installing with npm into React18 based project, get an error

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@">= 0.11.2 < 16.0.0" from react-textarea-highlight@1.0.0
npm ERR! node_modules/react-textarea-highlight
npm ERR!   react-textarea-highlight@"sudodoki/react-textarea-highlight" 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.
Gusakovskyi commented 6 months ago

wrong issue, sorry