React-redux: Error: Cannot find module 'react-redux/lib/utils/storeShape'

Created on 24 Feb 2017  路  5Comments  路  Source: reduxjs/react-redux

5.0.3 contains a breaking change introduced in 4d302257e3b361731f44b1f546e547ed578c8eec if you're using the shapes provided.

Most helpful comment

I'm having this error after a fresh npm install, how do I fix it?
my code contains no mention of 'storeShape'

edit: Solved. had to manually update react-intl-redux away from the old version which used storeShape

All 5 comments

Directly importing a module is not a supported behavior. It's considered a private API.

Well, it is a breaking change indeed. When doing such thing it is wise to follow semver and I think it should be release as 5.1.0 instead of 5.0.3

Well, if it's a _breaking_ change, semver would dictate this should be 6.0.0.

The argument here is that changes to non-public APIs don't qualify as "breaking".

If you look at the README, you won't see any mention of this file. This means it is a private API, and can change or be removed in any patch version. Please don't use undocumented private APIs.

I'm having this error after a fresh npm install, how do I fix it?
my code contains no mention of 'storeShape'

edit: Solved. had to manually update react-intl-redux away from the old version which used storeShape

Was this page helpful?
0 / 5 - 0 ratings