Connected-react-router: typescript error no exported ReactReduxContextValue

Created on 13 Mar 2019  路  2Comments  路  Source: supasate/connected-react-router

Error:(4, 12) TS2305: Module '"../@types/react-redux"' has no exported member 'ReactReduxContextValue'.
@types/react-redux: 6.0.13
connected-react-router: 6.3.2
DeepinScreenshot_胁褘斜械褉懈褌械-芯斜谢邪褋褌褜_20190313150441

Most helpful comment

I can verify this. This was first introduced in release 6.3.0 via #245, which bumped the version of @types/react-redux to ^7.0.0.

I'm not really sure what the right way to handle this is, but I want to point out that v7 of react-redux is still in alpha as of today - check out their releases. There also aren't any v7 builds on npm. Maybe #245 should be reverted until v7 is officially released?

In the meantime I'm personally solving this by staying on [email protected].

By the way, here are the react-redux type definitions:

All 2 comments

I can verify this. This was first introduced in release 6.3.0 via #245, which bumped the version of @types/react-redux to ^7.0.0.

I'm not really sure what the right way to handle this is, but I want to point out that v7 of react-redux is still in alpha as of today - check out their releases. There also aren't any v7 builds on npm. Maybe #245 should be reverted until v7 is officially released?

In the meantime I'm personally solving this by staying on [email protected].

By the way, here are the react-redux type definitions:

Update to version @types/react-redux 7.0.5 helped me!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Guymestef picture Guymestef  路  5Comments

nickvoronin-ellation picture nickvoronin-ellation  路  5Comments

jhwheeler picture jhwheeler  路  3Comments

dcs3spp picture dcs3spp  路  3Comments

pachuka picture pachuka  路  4Comments