Estou tomando esse erro:
./src/index.js Module not found: Can't resolve 'react-router' in '/home/leonardo/my-app/src'
Estou usando a mesma versão do react-router que é usado no curso, pois a atual estava deprecated. Segue o index:
import {Router,Route,browserHistory,IndexRoute} from 'react-router';
ReactDOM.render(
(<Router history={browserHistory}>
<Route path="/" component={App}>
<IndexRoute component={Home}/>
<Route path="/autor" component={AutorBox}/>
<Route path="/livro" component={Livro}/>
</Route>
</Router>),
document.getElementById('root')
);
Package.json:
"name": "my-app",
"version": "0.1.0",
"private": true,
"dependencies": {
"@types/jquery": "^3.3.30",
"@types/react": "^16.8.23",
"jquery": "^3.4.1",
"pubsub-js": "file:PubSubJS-master",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"react-router": "file:react-router",
"react-scripts": "3.0.1"
...
Alguma idéia do que pode estar causando isso?