Next.js: Replace babel-preset-latest with babel-preset-env

Created on 6 Apr 2017  ·  1Comment  ·  Source: vercel/next.js

I'm currently in the process of setting up next.js and got this notification:

$ npm install next react react-dom --save
npm WARN deprecated [email protected]: 💥  preset-latest accomplishes the same task as babel-preset-env. 🙏  Please install it with 'npm install babel-preset-env --save-dev'. '{ "presets": ["latest"] }' to '{ "presets": ["env"] }'. For more info, please check the docs: http://babeljs.io/docs/plugins/preset-env 👌. And let us know how you're liking Babel at @babeljs on 🐦

I'm assuming this comes from here: https://github.com/zeit/next.js/blob/6e0e2307dab46eeeda8fd761986f33350a811cee/package.json#L61

I have no idea if you're already aware of this. I've briefly searched the open issues and didn't find anything that related to this, so I figured I better open an issue for this. If you're already aware of this or have even solved it somewhere, I'm sorry – this is my first time setting up next.js so I have no experience or involvement with the project whatsoever.

bug

Most helpful comment

Yep. Would like to fix this issue.

>All comments

Yep. Would like to fix this issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

knipferrc picture knipferrc  ·  3Comments

YarivGilad picture YarivGilad  ·  3Comments

renatorib picture renatorib  ·  3Comments

rauchg picture rauchg  ·  3Comments

wagerfield picture wagerfield  ·  3Comments