EDIT: Found out it was redux-persist who had breaking changes in a patch revision.
I'm developping a webapp in Node, React, Redux, Webpack, etc. One of the packages (redux-persist) suddenly throws an error (Uncaught TypeError: storage.getItem is not a function ( persistStore.js:99
) when rehydrating the state (reading from localStorage).
Hints:
- This problem does not occur on my collegue's environment.
- This happened after trying to update my packages to Babel 6. But I don't see why this would be related.
- I tried
npm cache clean
- I tried deleting and re-cloning my repo.
- I tried
brew upgrade
and OSX updates (why not anyway!?) - It happens on Chrome, Safari which is the first time I opened it, and Firefox which I just installed for this purpose.
- I tried
git reset --hard; git clean -xfd; npm install
to a state before ever using redux-persist, and it didn't throw the error.
My conclusion is that it is clearly related to my environment, since I can't find anything on this on the web, plus it's not reproducible on my coworker's environment. But I'm out of ideas.
Thanks for your help.