不知如何是好,在执行npm run release出现了下面错误,不知道怎么解决,求帮助
我在使用npm run release出现了下面的问题,怎么解决
Hash: 223396e11ea7f486fa19
Version: webpack 4.19.0
Time: 293ms
Built at: 2018-09-15 13:53:24
1 asset
Entrypoint main = ./release/bundle.js
[0] ./src/index.js 2.62 KiB {0} [built] [failed] [1 error]
WARNING in configuration
The 'mode' option has not been set, webpack will fallback to 'production' for this value. Set 'mode' option to 'development' or 'production' to enable defaults for each environment.
You can also set it to 'none' to disable any default behavior. Learn more: https://webpack.js.org/concepts/mode/
ERROR in ./src/index.js
Module build failed (from ./node_modules/babel-loader/lib/index.js):
Error: Plugin/Preset files are not allowed to export objects, only functions. In /Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/babel-preset-es2017/lib/index.js
at createDescriptor (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/@babel/core/lib/config/config-descriptors.js:178:11)
at items.map (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/@babel/core/lib/config/config-descriptors.js:109:50)
at Array.map (<anonymous>)
at createDescriptors (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/@babel/core/lib/config/config-descriptors.js:109:29)
at createPresetDescriptors (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/@babel/core/lib/config/config-descriptors.js:101:10)
at presets (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/@babel/core/lib/config/config-descriptors.js:47:19)
at mergeChainOpts (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/@babel/core/lib/config/config-chain.js:315:26)
at /Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/@babel/core/lib/config/config-chain.js:278:7
at buildRootChain (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/@babel/core/lib/config/config-chain.js:118:22)
at loadPrivatePartialConfig (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/@babel/core/lib/config/partial.js:57:55)
at Object.loadPartialConfig (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/@babel/core/lib/config/partial.js:82:18)
at Object.<anonymous> (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/babel-loader/lib/index.js:105:26)
at Generator.next (<anonymous>)
at step (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/babel-loader/lib/index.js:3:221)
at _next (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/babel-loader/lib/index.js:3:409)
at /Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/babel-loader/lib/index.js:3:477
at new Promise (<anonymous>)
at Object.<anonymous> (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/babel-loader/lib/index.js:3:97)
at Object._loader (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/babel-loader/lib/index.js:183:18)
at Object.loader (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/babel-loader/lib/index.js:50:18)
at Object.<anonymous> (/Users/123456pass/Desktop/wutiange/Simple-demining/node_modules/babel-loader/lib/index.js:45:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! simple-demining@0.0.1 release: `webpack`
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the simple-demining@0.0.1 release 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:
npm ERR! /Users/123456pass/.npm/_logs/2018-09-15T05_53_24_519Z-debug.log