Eu fiz a instalação da ultima versão do Reat-router.
A aplicação está compilando, mas ao abri da um erro de JS conforme abaixo.
Uncaught TypeError: Cannot read property 'getCurrentLocation' of undefined
at Object.createTransitionManager (Router.js:111)
at Object.componentWillMount (Router.js:118)
at ReactCompositeComponent.js:348
at measureLifeCyclePerf (ReactCompositeComponent.js:75)
at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:347)
at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:258)
at Object.mountComponent (ReactReconciler.js:46)
at ReactCompositeComponentWrapper.performInitialMount (ReactCompositeComponent.js:371)
at ReactCompositeComponentWrapper.mountComponent (ReactCompositeComponent.js:258)
at Object.mountComponent (ReactReconciler.js:46)
Meu index está assim:
import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import './index.css';
import {Router, Route} from 'react-router';
ReactDOM.render(
(<Router>
<Route path="/" component={App}/>
<Route path="/autor"/>
<Route path="/livro"/>
</Router>),
document.getElementById('root')
);