kafka-rest-ui icon indicating copy to clipboard operation
kafka-rest-ui copied to clipboard

React compilation error

Open john-goldsmith opened this issue 7 years ago • 2 comments

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 avatar Oct 03 '18 21:10 john-goldsmith

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 avatar Oct 03 '18 22:10 john-goldsmith

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.

john-goldsmith avatar Oct 03 '18 22:10 john-goldsmith