vue-cli icon indicating copy to clipboard operation
vue-cli copied to clipboard

babel-preset-latest deprecation warning at npm install

Open jkole opened this issue 9 years ago • 5 comments

Doing npm install -g vue-cli gives:

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 🐦

jkole avatar Mar 30 '17 17:03 jkole

Hello! Please, open the issue on the relevant template repo (I think you're using the webpack one) and provide some steps to reproduce the problem. Thanks!

posva avatar Mar 31 '17 11:03 posva

I'm not sure I understand. As noted in the issue, this warning is immediately after the very first npm install of the vue-cli package, not when creating a new skeleton with any particular template. In other words, the first experience a new user has when installing vue-cli for the first time is a deprecation warning...nothing to do with any specific template. The steps to replicate are as indicated in the issue: simply try to do a fresh install with "npm install -g vue-cli"...

jkole avatar Mar 31 '17 13:03 jkole

Ups, closed a bit too fast. That warning appear because of a dependency in vue-cli but the problem should be fixed somewhere else. I'll check it once I'm home. It's probably a Vue preset

On Fri, 31 Mar 2017, 15:44 John Kole, [email protected] wrote:

I'm not sure I understand. As noted in the issue, this warning is immediately after the very first npm install of the vue-cli package, not when creating a new skeleton with any particular template. In other words, the first experience a new user has when installing vue-cli for the first time is a deprecation warning...nothing to do with any specific template.

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/vuejs/vue-cli/issues/420#issuecomment-290715824, or mute the thread https://github.com/notifications/unsubscribe-auth/AAoicZQ2CZBLuAdSVwJOsIRZ_ZHjctwaks5rrQM9gaJpZM4MupgQ .

posva avatar Mar 31 '17 14:03 posva

To fix these deprecation notices, vue-cli must bump babel-preset-vue-app to the very least 0.5.0. Ideally, ^1.0.

mcaskill avatar Aug 30 '17 17:08 mcaskill

Just got this today -- is there any blockers to updating babel-preset-vue-app?

tizmagik avatar Aug 31 '17 02:08 tizmagik