elgerlambert / redux-localstorage

Store enhancer that syncs (a subset) of your Redux store state to localstorage.
MIT License
1.32k stars 107 forks source link

.bablerc file preventing compilation with Babel 6 #72

Closed EmmaSimon closed 6 years ago

EmmaSimon commented 7 years ago

I'm using Babel 6.24, and after installing this package, it throws:

ERROR in ./~/redux-localstorage/lib/persistState.js
Module build failed: ReferenceError:
[BABEL] /home/emma/.../node_modules/redux-localstorage/lib/persistState.js:
Using removed Babel 5 option: /home/emma/.../node_modules/redux-localstorage/.babelrc.stage -
Check out the corresponding stage-x presets http://babeljs.io/docs/plugins/#presets

After removing node_modules/redux-localstorage/.babelrc, everything works fine.

yanghealsci commented 7 years ago

+1 Have the same problem, but ONLY on windows. It works well for linux and mac, no error were thrown.

EmmaSimon commented 7 years ago

@yanghealsci Hm, I'm having the issue on Linux (Debian 9).

lewisbarber commented 7 years ago

Yep I just had this problem too. Deleting .babelrc fixes it...

DiesIrae commented 6 years ago

Same issue on mac... :-(

alexanderwallin commented 6 years ago

@EmmaSimon You should generally not transpile anything inside the node_modules directory. Are you using Webpack? A common mistake is to omit ignore: [/node_modules/] from the babel-loader configuration.

EmmaSimon commented 6 years ago

@alexanderwallin Ah, yep, I'm doing that now, though I wasn't when I wrote this. 😛