Vue cli2 reported an error

enter npm run dev to report the following questions

travel@1.0.0 dev C:UserslenovoDesktopTravel
webpack-dev-server-inline-progress-config build/webpack.dev.conf.js

14% building modules 34 active 49 modules 15 active... lesvue-awesome-swipersrcswiper.vue {parser: "babylon"} is deprecated; we now treat it as {parser: "babel"}. 95% emitting

clipboard.png

Jul.06,2022

Vue-loader dependent prettier reporting problem, fixed in version 14.2.4

github commit of vue-loader


this is just a warning. The prompt asks you to put the

in the configuration item.
{ parser: "babylon" } 
//
{ parser: "babel" }

this may be caused by the vue-awesome-swiper package,


npm I prettier@~1.12.0


mine also found this error, which is caused by the prettier version, directly in the project: cnpm install prettier@~1.12.0-D or cnpm install prettier@~1.12.0-- save-dev, and then re-npm run dev it

Menu