redux-persist-immutable icon indicating copy to clipboard operation
redux-persist-immutable copied to clipboard

TramsformError: 'Couldn't find preset \"es2015\" relative to directory'

Open elyonsaber opened this issue 8 years ago • 2 comments

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!

elyonsaber avatar Oct 09 '16 10:10 elyonsaber

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.

DJTB avatar Dec 31 '16 11:12 DJTB

@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)

rt2zz avatar Jan 06 '17 07:01 rt2zz