Skip to content
This repository has been archived by the owner on Jun 21, 2019. It is now read-only.

React compilation error #3

Open
john-goldsmith opened this issue Oct 3, 2018 · 2 comments
Open

React compilation error #3

john-goldsmith opened this issue Oct 3, 2018 · 2 comments

Comments

@john-goldsmith
Copy link

I'm getting the following React error when running yarn run start

Failed to compile.

./src/index.js
29:86-99 'redux-persist' does not contain an export named 'autoRehydrate'.

I'll dig into it more, but my off-the-cuff idea is that redux-persist package changed it's exports in a particular version, and the package.json in this repo is being too version-greedy (aka, need to lock the version).

@john-goldsmith
Copy link
Author

Update: Sure enough, it looks like v4 to v5 removed autoRehydrate as outlined in the documentation: https://github.com/rt2zz/redux-persist/blob/208c6b112ead87b3701dfacaae2cdbe78377775a/docs/MigrationGuide-v5.md#migration-from-v4-to-v5

@john-goldsmith
Copy link
Author

Update: Downgrading redux-persist to 4.10.2 (the latest 4.x release) appears to fix the issue. The downside is that that release is ~1 year old at this point and doesn't take advantage of some of the newer features.

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

No branches or pull requests

1 participant