问答详情
源自:3-3 实现todo应用的界面

npm run dev 之后报错,这个是因为什么啊

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


提问者:qq_我还能孩子气多久_0 2019-01-26 11:21

个回答

  • Reagen
    2019-10-23 14:38:10

    遇到了同样的错误

  • 欧尼桑1111
    2019-10-18 17:56:25

    兄弟,这个问题解决了吗?

  • qq_慕盖茨4429931
    2019-09-10 22:36:31

    同样的错误,累了累了,改了好久还是不行

  • qq_我还能孩子气多久_0
    2019-01-26 11:23:00

    https://img2.mukewang.com/5c4bd2830001ce5604200215.jpg补充footer.jsx