mobx-react-router: get error history.getCurrentLocation is not a function()
Hi. Thanks for ur package. I get this error and don’t know how to handle it
TypeError: history.getCurrentLocation is not a function(…)
any ideas?
About this issue
- Original URL
- State: closed
- Created 8 years ago
- Comments: 19 (1 by maintainers)
@JohnLouderback Yeah the react-router peer dependency should be enough to guarantee that history
v3is installed. Looks like history was upgraded tov4somehow…Either way glad it’s working now!
Try
rm node_modules/react-router -fr && npm install