React ^18 でconnected-react-routerを使いたい
解決したいこと
Reactにconnected-react-routerをインストールしたい
またはconnectReact,routerMiddlewareの代替になるメソッドを教えてほしいです
発生している問題・エラー
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ecsite-app@0.1.0
npm ERR! peer react@"^16.4.0 || ^17.0.0" from connected-react-router@6.9.2
npm ERR! node_modules/connected-react-router
npm ERR! connected-react-router@"*" 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 C:\Users\■ ■ ■\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\■ ■ ■\AppData\Local\npm-cache_logs\2022-06-17T07_15_30_036Z-debug-0.log
PS C:\Users\■ ■ ■\■■■\デスクトップ\react-app\ecsite-app>