本地运行 npm run generate 可以正常打包上传到服务器就会报如下错误
ERROR in ./.nuxt/client.js Module not found: Error: Can't resolve 'core-js/modules/es6.array.iterator' in '/var/jenkins_home/workspace/flks-wechat/.nuxt' @ ./.nuxt/client.js 14:0-44 @ multi ./.nuxt/client.js
ERROR in ./.nuxt/utils.js Module not found: Error: Can't resolve 'core-js/modules/es6.date.to-string' in '/var/jenkins_home/workspace/flks-wechat/.nuxt' @ ./.nuxt/utils.js 7:0-44 @ ./.nuxt/client.js @ multi ./.nuxt/client.js
ERROR in ./pages/index.vue?vue&type=script&lang=js& (./node_modules/_babel-loader@8.0.5@babel-loader/lib??ref--2-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options!./pages/index.vue?vue&type=script&lang=js&) Module not found: Error: Can't resolve 'core-js/modules/es6.date.to-string' in '/var/jenkins_home/workspace/flks-wechat/pages' @ ./pages/index.vue?vue&type=script&lang=js& (./node_modules/_babel-loader@8.0.5@babel-loader/lib??ref--2-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options!./pages/index.vue?vue&type=script&lang=js&) 2:0-44 @ ./pages/index.vue?vue&type=script&lang=js& @ ./pages/index.vue @ ./.nuxt/router.js @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi ./.nuxt/client.js
ERROR in ./plugins/axios.js Module not found: Error: Can't resolve 'core-js/modules/es6.date.to-string' in '/var/jenkins_home/workspace/flks-wechat/plugins' @ ./plugins/axios.js 2:0-44 @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi ./.nuxt/client.js
ERROR in ./.nuxt/client.js Module not found: Error: Can't resolve 'core-js/modules/es6.function.name' in '/var/jenkins_home/workspace/flks-wechat/.nuxt' @ ./.nuxt/client.js 13:0-43 @ multi ./.nuxt/client.js
ERROR in ./.nuxt/index.js Module not found: Error: Can't resolve 'core-js/modules/es6.function.name' in '/var/jenkins_home/workspace/flks-wechat/.nuxt' @ ./.nuxt/index.js 5:0-43 @ ./.nuxt/client.js @ multi ./.nuxt/client.js
ERROR in ./.nuxt/utils.js Module not found: Error: Can't resolve 'core-js/modules/es6.function.name' in '/var/jenkins_home/workspace/flks-wechat/.nuxt' @ ./.nuxt/utils.js 17:0-43 @ ./.nuxt/client.js @ multi ./.nuxt/client.js
ERROR in ./.nuxt/axios.js Module not found: Error: Can't resolve 'core-js/modules/es6.function.name' in '/var/jenkins_home/workspace/flks-wechat/.nuxt' @ ./.nuxt/axios.js 2:0-43 @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi ./.nuxt/client.js
ERROR in ./assets/request/login/login.js Module not found: Error: Can't resolve 'core-js/modules/es6.function.name' in '/var/jenkins_home/workspace/flks-wechat/assets/request/login' @ ./assets/request/login/login.js 1:0-43 @ ./node_modules/_babel-loader@8.0.5@babel-loader/lib??ref--2-0!./node_modules/_vue-loader@15.7.0@vue-loader/lib??vue-loader-options!./pages/announcements/announcements.vue?vue&type=script&lang=js& @ ./pages/announcements/announcements.vue?vue&type=script&lang=js& @ ./pages/announcements/announcements.vue @ ./.nuxt/router.js @ ./.nuxt/index.js @ ./.nuxt/client.js @ multi ./.nuxt