remix-run / history

Manage session history with JavaScript
MIT License
8.28k stars 961 forks source link

Cannot read properties of undefined (reading 'pathname'). After upgrate to react router 6 #905

Closed sergeushenecz closed 2 years ago

sergeushenecz commented 2 years ago

Hello everyone. I don't know it is problem in the history library or connected-react-router or in react-router. After upgrade react-router-dom 5.3.0 to 6.0.0 i have error Cannot read properties of undefined (reading 'pathname') image

Could you please help me. Who have same error after upgrade.

sergeushenecz commented 2 years ago

https://github.com/supasate/connected-react-router/issues/543

dxmz commented 1 year ago

please read it! https://stackoverflow.com/questions/69859509/cannot-read-properties-of-undefined-reading-pathname-when-testing-pages-in/70604506