1、重新安装依赖
a) yarn add babel-preset-es2015 --dev
b) npm install babel-preset-es2015 -D
2、修改babel.config.js配置
module.exports = {
presets: ['@vue/cli-plugin-babel/preset', ['@babel/preset-env', { modules: false }]], plugins: [ [ 'component', { libraryName: 'element-ui', styleLibraryName: 'theme-chalk' } ] ] } 标签:babel,element,preset,ui,es2015,vue2.0 From: https://www.cnblogs.com/ndcll/p/17477546.html