Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
elyonsaber opened this issue Oct 9, 2016 · 2 comments

Comments

@elyonsaber
Copy link

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!

@DJTB
Copy link

DJTB commented Dec 31, 2016

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.

@rt2zz
Copy link
Owner

rt2zz commented Jan 6, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants