viewflow/cookbook

Issue with import storage from 'redux-persist/es/storage'

cheremovsky opened this issue · 1 comments

Hello!
I'm new to React\Redux and I encountered with the problem. I try to follow the Django+React article in my project and get an error. The only presence of that import storage in store.js is enough to get the error.
The example in your repo works just fine, but I can not find the difference between your example and my code. I am using Webpack however.
Here's the error:
VM6423:1 Uncaught SyntaxError: Unexpected identifier at Object.<anonymous> (bundle.js:126) at m (bundle.js:1) at c (bundle.js:1) at Object.eval (eval at <anonymous> (bundle.js:109), <anonymous>:10:16) at Object.eval (eval at <anonymous> (bundle.js:109), <anonymous>:43:27) at eval (eval at <anonymous> (bundle.js:109), <anonymous>:44:30) at Object.<anonymous> (bundle.js:109) at m (bundle.js:1) at c (bundle.js:1) at Object.eval (eval at <anonymous> (bundle.js:108), <anonymous>:21:23)

Here's my webpack.config.js, just in case: https://pastebin.com/q2yye7jy
And here's my dependencies: https://pastebin.com/KuAuw5qD

Probably the difference in the result storage package version. Something constantly been broken in the react/redux world.