npm run dev 之后報(bào)錯(cuò),這個(gè)是因?yàn)槭裁窗?/h1>
ERROR in ./src/todo/footer.jsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
ReferenceError: Unknown option: .preset. Check out https://babeljs.io/docs/en/babel-core/#options for more i
nformation about options.
? ? at throwUnknownError (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\validation\options.js:123
:11)
? ? at Object.keys.forEach.key (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\validation\options.
js:107:5)
? ? at Array.forEach (<anonymous>)
? ? at validateNested (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\validation\options.js:83:21)
? ? at validate (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\validation\options.js:74:10)
? ? at file (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\config-chain.js:174:34)
? ? at cachedFunction (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\caching.js:33:19)
? ? at buildRootChain (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\config-chain.js:120:36)
? ? at loadPrivatePartialConfig (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\partial.js:85:55)
? ? at Object.loadPartialConfig (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\partial.js:110:18)
? ? at Object.<anonymous> (F:\studyCode\vue\abc\node_modules\babel-loader\lib\index.js:140:26)
? ? at Generator.next (<anonymous>)
? ? at asyncGeneratorStep (F:\studyCode\vue\abc\node_modules\babel-loader\lib\index.js:3:103)
? ? at _next (F:\studyCode\vue\abc\node_modules\babel-loader\lib\index.js:5:194)
? ? at F:\studyCode\vue\abc\node_modules\babel-loader\lib\index.js:5:364
? ? at new Promise (<anonymous>)
?@ ./src/app.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./src/app.vue?v
ue&type=script&lang=js&) 11:0-38 17:8-14
?@ ./src/app.vue?vue&type=script&lang=js&
?@ ./src/app.vue
?@ ./src/index.js
?@ multi (webpack)-dev-server/client?http://0.0.0.0:8000 (webpack)/hot/dev-server.js ./src/index.js
ERROR in ./src/todo/footer.jsx
Module build failed (from ./node_modules/babel-loader/lib/index.js):
ReferenceError: Unknown option: .preset. Check out https://babeljs.io/docs/en/babel-core/#options for more i
nformation about options.
? ? at throwUnknownError (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\validation\options.js:123
:11)
? ? at Object.keys.forEach.key (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\validation\options.
js:107:5)
? ? at Array.forEach (<anonymous>)
? ? at validateNested (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\validation\options.js:83:21)
? ? at validate (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\validation\options.js:74:10)
? ? at file (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\config-chain.js:174:34)
? ? at cachedFunction (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\caching.js:33:19)
? ? at buildRootChain (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\config-chain.js:120:36)
? ? at loadPrivatePartialConfig (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\partial.js:85:55)
? ? at Object.loadPartialConfig (F:\studyCode\vue\abc\node_modules\@babel\core\lib\config\partial.js:110:18)
? ? at Object.<anonymous> (F:\studyCode\vue\abc\node_modules\babel-loader\lib\index.js:140:26)
? ? at Generator.next (<anonymous>)
? ? at asyncGeneratorStep (F:\studyCode\vue\abc\node_modules\babel-loader\lib\index.js:3:103)
? ? at _next (F:\studyCode\vue\abc\node_modules\babel-loader\lib\index.js:5:194)
? ? at F:\studyCode\vue\abc\node_modules\babel-loader\lib\index.js:5:364
? ? at new Promise (<anonymous>)
?@ ./src/app.vue?vue&type=script&lang=js& (./node_modules/vue-loader/lib??vue-loader-options!./src/app.vue?v
ue&type=script&lang=js&) 11:0-38 17:8-14
?@ ./src/app.vue?vue&type=script&lang=js&
?@ ./src/app.vue
?@ ./src/index.js
?@ multi (webpack)-dev-server/client?http://0.0.0.0:8000 (webpack)/hot/dev-server.js ./src/index.js
2019-10-23
遇到了同樣的錯(cuò)誤