Skip to content
This repository has been archived by the owner on Jan 30, 2019. It is now read-only.

babel-preset-latest is deprecated #18

Open
mattmilesi opened this issue Aug 29, 2017 · 0 comments
Open

babel-preset-latest is deprecated #18

mattmilesi opened this issue Aug 29, 2017 · 0 comments

Comments

@mattmilesi
Copy link

When I try to build my project I get this message:

Module build failed: Error: Couldn't find preset "latest" relative to directory "/mydir/node_modules/react-pager"

Installing babel-preset-latest fixes the error, but I think it's not the best way because babel-preset-latest is deprecated and its installation gives me a warning:

We're really excited that you're trying to use ES2016 syntax, but instead of making more yearly presets, Babel has a better preset that we recommend you use instead: npm install babel-preset-env --save-dev. Give us a follow @babeljs to get more updates

However, installing only babel-preset-env doesn't fix the problem.

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

No branches or pull requests

1 participant