React版本16.2.0,已经eject了,npm run build报错
$ npm run build
> wolf@0.1.0 build
> node scripts/build.js
Creating an optimized production build...
Failed to compile.
Failed to minify the code from this file:
./node_modules/query-string/index.js:8
Read more here: http://bit.ly/2tRViJ9
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! wolf@0.1.0 build: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the wolf@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
官方已经给出解释了,点进去链接:
发现是官方说的可能用了第三方软件包没有被正确编译成ES5,你去检查一下自己的代码用到这些软件包的地方,如图所示,用这些方法试试