react-router history cannot read property location of undefined

Created on 4 Mar 2017  路  1Comment  路  Source: ReactTraining/react-router

I am using react-router: "^3.0.2", and history": "^3.0.0 and I have setup my redux store like:

import { createHistory } from 'history';

export default function configureStore() {


    let createStoreWithMiddleware = composeEnhancers(
        applyMiddleware(thunk),
        reduxReactRouter({ routes, createHistory })
        )(createStore)

    const store = createStoreWithMiddleware(rootReducer)

    return store
}

It gives me error like cannot read property location of undefined .

How can I solve this ?

>All comments

This is a bug tracker, not a support system. For usage questions, please use Stack Overflow or Reactiflux. Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ArthurRougier picture ArthurRougier  路  3Comments

Radivarig picture Radivarig  路  3Comments

alexyaseen picture alexyaseen  路  3Comments

nicolashery picture nicolashery  路  3Comments

ryansobol picture ryansobol  路  3Comments