Connected-react-router: Make release compatible with redux 4

Created on 14 Jun 2018  路  8Comments  路  Source: supasate/connected-react-router

Hi. I noticed you upped compatibility with Redux 4.

Is it possible to make a maintenance release for this? Redux 4 is quite a change from 3.x.

Most helpful comment

Hi, we use the package from npm. Could you help to publish a release for the change? Thank you!

All 8 comments

75

Hi, we use the package from npm. Could you help to publish a release for the change? Thank you!

I don't get it:

  1. "react-router-redux": "^4.0.8" works with redux 4 and it's deprecated.
  2. connected-react-router is newer version of ConnectedRouter from deprecated react-router-redux but it only work with redux 3 and does NOT work with redux 4

Is everything right? Why it doesn't support redux4? Will it support it later or there is something wrong with redux4 and nobody should use it now?

connected-react-router supports redux 4. The problem is that an npm release hasn't been made after the compatibility was updated. A temporary solution is to install from the git repo instead of from npm.

I'm trying to work around by installing from git as suggested by @abraha2d above.

When I run yarn add https://github.com/supasate/connected-react-router.git it reports the dependency was added, but I still getModule not found: Error: Can't resolve 'connected-react-router' in whne I try to build/run.

Anyone have any ideas if I'm doing something wrong?

For those struggling with npm install --save connected-react-router reporting

unmet dependency redux@^3.6.0 for [email protected]

Uninstall connected-react-router with npm uninstall --save connected-react-router and install it from the git repository with npm install --save git+https://github.com/supasate/connected-react-router.git instead until it is updated on npmjs.

@Jtango18 This is because npm install --save git+https://github.com/supasate/connected-react-router.git does not include \lib directory which contains the primary entry point of the lib
One of the solutions is to build the lib manually :confused:

EDIT: I just made a fork here including
the \lib directory, you can get it with the following command: npm install --save git+https://github.com/branchard/connected-react-router.git, that works fine :slightly_smiling_face:

Released v4.4.0 today and listed redux 4.x in peerDependency :). Sorry for keeping you guys waiting!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Hardtack picture Hardtack  路  3Comments

AdrienLemaire picture AdrienLemaire  路  5Comments

austsinovich picture austsinovich  路  4Comments

Guymestef picture Guymestef  路  5Comments

alexseitsinger picture alexseitsinger  路  3Comments