问题上图: 在vue项目中npm run serve时报错: 问题解决: 删除 babel.config.js 中 component 重复的部分 原因: 我的原因是重复安装了 element 插件,导致 babel.config.js 中出现了重复的 component 配置