Skip to content
This repository has been archived by the owner on Oct 26, 2018. It is now read-only.

history compatibility issue #553

Closed
monte-hayward opened this issue Mar 20, 2017 · 1 comment
Closed

history compatibility issue #553

monte-hayward opened this issue Mar 20, 2017 · 1 comment

Comments

@monte-hayward
Copy link

An issue very much like #475 occurs with updates to react-router 4

    "react-redux": "^5.0.3",
    "react-router": "^4.0.0",
    "react-router-redux": "4.0.7",
    "redux": "^3.6.0",

As a workaround, I rolled back to 3.0.2, and the issue

    "react-redux": "^4.4.5",
    "react-router": "^3.0.2",
    "react-router-redux": "4.0.8",
    "redux": "^3.6.0",
TypeError: Cannot read property 'pathname' of undefined
    at new Router (Router.js:30)
    at ReactCompositeComponent.js:295
    at measureLifeCyclePerf (ReactCompositeComponent.js:75)
    at ReactCompositeComponentWrapper._constructComponentWithoutOwner (ReactCompositeComponent.js:294)
    at ReactCompositeComponentWrapper._constructComponent (ReactCompositeComponent.js:280)
    at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:188)
    at Object.mountComponent (ReactReconciler.js:46)
    at ReactDOMComponent.mountChildren (ReactMultiChild.js:238)
    at ReactDOMComponent._createInitialChildren (ReactDOMComponent.js:697)
    at ReactDOMComponent.mountComponent (ReactDOMComponent.js:516)
import createHistory from 'history/lib/createBrowserHistory';
// ...
const browserHistory = createHistory();
// ...
const RouterApp = props => (
  <Provider {...props} store={store()}>
    <Router
      history={browserHistory}
      routes={routes}
    />
  </Provider>
);
@timdorr
Copy link
Member

timdorr commented Mar 21, 2017

This library doesn't support React Router or history 4.0. Please see the top of the README.

@timdorr timdorr closed this as completed Mar 21, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants