解决方案: 找到下图的webpack.config.js中的 new webpack.IgnorePlugin(/^./locale/,/moment/, /moment/,/moment/), 修改 new webpack.IgnorePlugin(/\.\/locale/, /moment/),