报错信息:
ERROR Failed to compile with 1 errors 下午2:54:56 error in ./src/main.js Module build failed: Error: Plugin/Preset files are not allowed to export objects, only functions. In /xxx/node_modules/babel-preset-stage-2/lib/index.js
原因babel6和7版本冲突
解决办法:
npm install babel-loader@7.0.0