I'm trying to use connected-react-router
module.
From the docs, this is my code in the reducer:
import { combineReducers } from 'redux';
import login from './loginReducer';
import { connectRouter } from 'connected-react-router'
export default (history) => combineReducers({
router: connectRouter(history),
login
});
I'm getting this error in compilation time:
./node_modules/connected-react-router/esm/ConnectedRouter.js Module not found: Can't resolve 'react-redux' in 'C:\Users\ericn\Documents\ReactJS\test\node_modules\connected-react-router\esm'
I've been looking for this for a while but none seems to have the same problem.
Any thoughts?