ERRORin./src/index.js
Module build failed(from./node_modules/babel-loader/lib/index.js):
Error: Unknown option:.preset. Check out https://babeljs.io/docs/en/babel-core/#options for more information about options.
at throwUnknownError(/Users/sataniya/Desktop/Gobang/node_modules/@babel/core/lib/config/validation/options.js:123:27)
at /Users/sataniya/Desktop/Gobang/node_modules/@babel/core/lib/config/validation/options.js:108:5
at Array.forEach(<anonymous>)
at validateNested(/Users/sataniya/Desktop/Gobang/node_modules/@babel/core/lib/config/validation/options.js:84:21)
at validate(/Users/sataniya/Desktop/Gobang/node_modules/@babel/core/lib/config/validation/options.js:75:10)
at /Users/sataniya/Desktop/Gobang/node_modules/@babel/core/lib/config/config-chain.js:174:34
at cachedFunction(/Users/sataniya/Desktop/Gobang/node_modules/@babel/core/lib/config/caching.js:62:27)
at cachedFunction.next(<anonymous>)
at evaluateSync(/Users/sataniya/Desktop/Gobang/node_modules/gensync/index.js:244:28)
at sync(/Users/sataniya/Desktop/Gobang/node_modules/gensync/index.js:84:14)
ℹ 「wdm」: Failed to compile.
有时候在使用webpack打包项目的时候会出先Error: Unknown option: .preset这个错误ERROR in ./src/index.jsModule build failed (from ./node_modules/babel-loader/lib/index.js):Error: Unknown option: .preset. Check out https://babeljs.io/docs/en/babel-core/#options for more infor.