为了账号安全,请及时绑定邮箱和手机立即绑定

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


正在回答

4 回答

遇到了同样的错误

0 回复 有任何疑惑可以回复我~

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

0 回复 有任何疑惑可以回复我~

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

0 回复 有任何疑惑可以回复我~

https://img1.sycdn.imooc.com//5c4bd2830001ce5604200215.jpg补充footer.jsx


0 回复 有任何疑惑可以回复我~
#1

慕村2426204

你配置.babelrc了吗
2019-01-29 回复 有任何疑惑可以回复我~

举报

0/150
提交
取消

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

我要回答 关注问题
意见反馈 帮助中心 APP下载
官方微信