kafka-rest-ui
kafka-rest-ui copied to clipboard
React compilation error
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).
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
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.