redux-persist-immutable
redux-persist-immutable copied to clipboard
TramsformError: 'Couldn't find preset \"es2015\" relative to directory'
Previously I have used redux-presist in one demo, and it worked smoothly. Then I want to integrate it in our project. Since the top level state is immutable map, I plan to use redux-persist-immutable. However I get error like this: TramsformError: ../node_modules/redux-persist-immutable/lib/index.js: 'Couldn't find preset "es2015" relative to directory' "../node-modules/redux-persist-immutable" Does it mean that I need to install babel-preset-es2015 and something else? Thanks!
I'm sure you've solved this by now, but your .babelrc or babel config is requiring the es2015 presets module. Either install it locally with npm install -D babel-preset-es2015
or yarn add --dev babel-preset-es2015
else install it globally and ensure that you have global node_modules on your $PATH.
@elyonsaber did you install from github or npm? I would not expect you to see this issue related to this module unless the babelrc is included (we exlcude babelrc from the npm package)