Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

typescript error no exported ReactReduxContextValue #268

Closed
DAlekseenko opened this issue Mar 13, 2019 · 2 comments
Closed

typescript error no exported ReactReduxContextValue #268

DAlekseenko opened this issue Mar 13, 2019 · 2 comments

Comments

@DAlekseenko
Copy link

DAlekseenko commented Mar 13, 2019

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

@chasecaleb
Copy link

chasecaleb commented Mar 19, 2019

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 connected-react-router@6.2.2.

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

@DAlekseenko
Copy link
Author

DAlekseenko commented Mar 20, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants