Ive upgraded react-router
and react-router-dom
to v6 and i get compile errors from @ionic/react-router
.
ERROR in ./node_modules/@ionic/react-router/dist/index.js 2:0-66
Module not found: Error: Can't resolve 'history' in '/node_modules/@ionic/react-router/dist'
ERROR in ./node_modules/@ionic/react-router/dist/index.js 890:18-28 export 'withRouter' (imported as 'withRouter') was not found in 'react-router-dom' (possible exports: )
If it is indeed the case that ionic is incompatible with react-router
v6 why isnt it alteast mentioned somewhere in the docs.
Any ionic dev to weigh in.