acdlite / redux-router

Redux bindings for React Router – keep your router state inside your Redux store
MIT License
2.3k stars 200 forks source link

Webpack compile error - Cannot resolve module 'react-router/lib/isActive' #286

Closed ghost closed 7 years ago

ghost commented 7 years ago

I use:

There is only one request to redux-router:

import {routerStateReducer} from "redux-router";
const rootReducer = combineReducers({
    router: routerStateReducer,
    <...other reducers...>
});

I get:

ERROR in ./~/redux-router/lib/isActive.js
Module not found: Error: Cannot resolve module 'react-router/lib/isActive' in /Users/vladblindu/Documents/data/zecode/javascript/react-base/node_modules/redux-router/lib
 @ ./~/redux-router/lib/isActive.js 8:30-66
webpack: Failed to compile.

I tried to check the missing path but failed to find the path myself. I am banging my head to the wall for several hours now. Where am I wrong or where's the incompatibility?

tarodenberg commented 7 years ago

react-router 4.0.0 was released only a few days ago and is not compatible with redux-router 2.1.2. I would recommend using an older version of react-router (v2 or v3) if you would like to use redux-router.

ghost commented 7 years ago

Thanks a lot. I already did this. For the moment I hope this will help other that have "compulsive update syndrome" like me.